Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7e055d4e
Commit
7e055d4e
authored
Nov 08, 2013
by
Ted Nyman
Committed by
antirez
Oct 06, 2014
Browse files
Fix on-place -> in-place
Closes #1373
parent
189c3960
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sds.c
View file @
7e055d4e
...
@@ -109,7 +109,7 @@ void sdsupdatelen(sds s) {
...
@@ -109,7 +109,7 @@ void sdsupdatelen(sds s) {
sh
->
len
=
reallen
;
sh
->
len
=
reallen
;
}
}
/* Modify an sds string
o
n-place to make it empty (zero length).
/* Modify an sds string
i
n-place to make it empty (zero length).
* However all the existing buffer is not discarded but set as free space
* However all the existing buffer is not discarded but set as free space
* so that next append operations will not require allocations up to the
* so that next append operations will not require allocations up to the
* number of bytes previously available. */
* number of bytes previously available. */
...
...
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