aboutsummaryrefslogtreecommitdiff
path: root/docs/ref/api/memory.md
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-10-22 15:22:54 -0700
committerGarrett D'Amore <garrett@damore.org>2024-10-22 15:22:54 -0700
commitcc2486615d7585b348b46170a6bb19c8084d6c5b (patch)
tree2808f2b010f3931cf40d880d62d5d5293ee9129d /docs/ref/api/memory.md
parent018294242819ed59e708e23cf40b822e843ec3ac (diff)
downloadnng-cc2486615d7585b348b46170a6bb19c8084d6c5b.tar.gz
nng-cc2486615d7585b348b46170a6bb19c8084d6c5b.tar.bz2
nng-cc2486615d7585b348b46170a6bb19c8084d6c5b.zip
docs: consolidate misc chapter
Diffstat (limited to 'docs/ref/api/memory.md')
-rw-r--r--docs/ref/api/memory.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/api/memory.md b/docs/ref/api/memory.md
index 02748123..fb7ec18e 100644
--- a/docs/ref/api/memory.md
+++ b/docs/ref/api/memory.md
@@ -48,7 +48,7 @@ char *nng_strdup(const char *src);
The {{i:`nng_strdup`}} duplicates the string _src_ and returns it.
This is logically equivalent to using [`nng_alloc`][nng_alloc]
-to allocate a region of memory of `[c] strlen(s) + 1` bytes, and then
+to allocate a region of memory of `strlen(s) + 1` bytes, and then
using `strcpy` to copy the string into the destination before
returning it.
@@ -66,7 +66,7 @@ void nng_strfree(char *str);
The {{i:`nng_strfree`}} function is a convenience function that
can be used to deallocate strings allocated with [`nng_strdup`][nng_strdup].
-It is effectively the same as `[c] nng_free(strlen(str) + 1)`.
+It is effectively the same as `nng_free(strlen(str) + 1)`.
[nng_alloc]: #allocate-memory
[nng_free]: #deallocate-memory