diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2020-09-27 21:04:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-27 21:04:58 -0700 |
commit | b47fae4e7012a9e868db4e0cdfd2fb078a715706 (patch) | |
tree | d9d83d3f8fc2f6c354d5aec320d5fc45ce5edeb5 /sds.c | |
parent | 773d6ea8a73de57279a8733aa884bc5710816779 (diff) | |
parent | f989670e595f5b9548a2a759be06b5adc33e78ac (diff) |
Merge pull request #881 from timgates42/bugfix_typo_terminated
docs: Fix simple typo, termined -> terminated
Diffstat (limited to 'sds.c')
-rw-r--r-- | sds.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -72,7 +72,7 @@ static inline char sdsReqType(size_t string_size) { * and 'initlen'. * If NULL is used for 'init' the string is initialized with zero bytes. * - * The string is always null-termined (all the sds strings are, always) so + * The string is always null-terminated (all the sds strings are, always) so * even if you create an sds string with: * * mystring = sdsnewlen("abc",3); @@ -415,7 +415,7 @@ sds sdscpylen(sds s, const char *t, size_t len) { return s; } -/* Like sdscpylen() but 't' must be a null-termined string so that the length +/* Like sdscpylen() but 't' must be a null-terminated string so that the length * of the string is obtained with strlen(). */ sds sdscpy(sds s, const char *t) { return sdscpylen(s, t, strlen(t)); |