diff options
author | Sun He <sunheehnus@gmail.com> | 2014-11-03 17:21:54 +0800 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-12-09 15:14:09 +0100 |
commit | c5b449ea55a48e1bd72fbf0b6f8b07292623217d (patch) | |
tree | 86675dcb6aab002f2c3b5f5f8733faac62d39ec1 | |
parent | 559cefce13060d83888349bfd1ceed6a103e01ea (diff) | |
download | redis-c5b449ea55a48e1bd72fbf0b6f8b07292623217d.tar.gz |
sds.c: Correct two spelling mistakes in comments
-rw-r--r-- | src/sds.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -295,7 +295,7 @@ sds sdscpy(sds s, const char *t) { * conversion. 's' must point to a string with room for at least * SDS_LLSTR_SIZE bytes. * - * The function returns the lengh of the null-terminated string + * The function returns the length of the null-terminated string * representation stored at 's'. */ #define SDS_LLSTR_SIZE 21 int sdsll2str(char *s, long long value) { @@ -369,7 +369,7 @@ sds sdsfromlonglong(long long value) { return sdsnewlen(buf,len); } -/* Like sdscatpritf() but gets va_list instead of being variadic. */ +/* Like sdscatprintf() but gets va_list instead of being variadic. */ sds sdscatvprintf(sds s, const char *fmt, va_list ap) { va_list cpy; char staticbuf[1024], *buf = staticbuf, *t; |