Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sds.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static inline char sdsReqType(size_t string_size) {
* If NULL is used for 'init' the string is initialized with zero bytes.
* If SDS_NOINIT is used, the buffer is left uninitialized;
*
* 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);
Expand Down Expand Up @@ -434,7 +434,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));
Expand Down