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
0f06f8df
Commit
0f06f8df
authored
Dec 12, 2013
by
codeeply
Browse files
comment mistake fixed
parent
c590549e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sds.c
View file @
0f06f8df
...
@@ -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