aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-02-06 16:41:16 +0100
committerantirez <antirez@gmail.com>2014-02-06 16:41:16 +0100
commit2a45d226587e1fc456e8213a897ee5369c0d072c (patch)
treebda4dd5d17c82e510dfe52fbbd94d60dedcfde68
parentf9b0cb3ec4cdb48e65acfb2783b3bdb6eaf9402a (diff)
downloadsds-2a45d226587e1fc456e8213a897ee5369c0d072c.tar.xz
README: fixed sdscatprintf() example.
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index c0ea8da..47d12b0 100644
--- a/README.md
+++ b/README.md
@@ -267,7 +267,7 @@ Example:
sds s;
int a = 10, b = 20;
- s = sdsempty("The sum is: ");
+ s = sdsnew("The sum is: ");
s = sdscatprintf(s,"%d+%d = %d",a,b,a+b);
Often you need to create SDS string directly from printf format specifiers.