Commit 0f06f8df authored by codeeply's avatar codeeply
Browse files

comment mistake fixed

parent c590549e
...@@ -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");
* sdstrim(s,1,-1); => "ello Worl" * sdsrange(s,1,-1); => "ello World"
*/ */
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)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment