From f989670e595f5b9548a2a759be06b5adc33e78ac Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sat, 26 Sep 2020 20:58:09 +1000 Subject: [PATCH] docs: Fix simple typo, termined -> terminated There is a small typo in sds.c. Should read `terminated` rather than `termined`. --- sds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sds.c b/sds.c index 49d2096..35baa05 100644 --- a/sds.c +++ b/sds.c @@ -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));