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
redis
Commits
a99c751d
Commit
a99c751d
authored
Dec 12, 2013
by
Salvatore Sanfilippo
Browse files
Merge pull request #1460 from codeeply/simplify2
comment mistake fixed
parents
a5ec247f
0f06f8df
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sds.c
View file @
a99c751d
...
@@ -383,7 +383,7 @@ sds sdstrim(sds s, const char *cset) {
...
@@ -383,7 +383,7 @@ sds sdstrim(sds s, const char *cset) {
* Example:
* Example:
*
*
* s = sdsnew("Hello World");
* s = sdsnew("Hello World");
* sds
trim
(s,1,-1); => "ello Worl"
* sds
range
(s,1,-1); => "ello Worl
d
"
*/
*/
void
sdsrange
(
sds
s
,
int
start
,
int
end
)
{
void
sdsrange
(
sds
s
,
int
start
,
int
end
)
{
struct
sdshdr
*
sh
=
(
void
*
)
(
s
-
(
sizeof
(
struct
sdshdr
)));
struct
sdshdr
*
sh
=
(
void
*
)
(
s
-
(
sizeof
(
struct
sdshdr
)));
...
...
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