diff options
author | antirez <antirez@gmail.com> | 2014-02-06 16:41:16 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-02-06 16:41:16 +0100 |
commit | 2a45d226587e1fc456e8213a897ee5369c0d072c (patch) | |
tree | bda4dd5d17c82e510dfe52fbbd94d60dedcfde68 | |
parent | f9b0cb3ec4cdb48e65acfb2783b3bdb6eaf9402a (diff) | |
download | sds-2a45d226587e1fc456e8213a897ee5369c0d072c.tar.xz |
README: fixed sdscatprintf() example.
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |