Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
b47fae4e
Unverified
Commit
b47fae4e
authored
Sep 27, 2020
by
Michael Grunder
Committed by
GitHub
Sep 27, 2020
Browse files
Merge pull request #881 from timgates42/bugfix_typo_terminated
docs: Fix simple typo, termined -> terminated
parents
773d6ea8
f989670e
Changes
1
Hide whitespace changes
Inline
Side-by-side
sds.c
View file @
b47fae4e
...
...
@@ -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-termin
at
ed (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-termin
at
ed 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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment