aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-02-06 17:10:16 +0100
committerantirez <antirez@gmail.com>2014-02-06 17:10:16 +0100
commitd86a9b85cb4fb96430c7479ae6c956f2b605bbd1 (patch)
tree29937feca0578971fd516b066cb532025d980dbf
parentf41ed18eeee9361e667c7da0a3ca71294ffa5e50 (diff)
downloadsds-d86a9b85cb4fb96430c7479ae6c956f2b605bbd1.tar.xz
Fixed num to string example.
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 83d0cdf..a2fd4db 100644
--- a/README.md
+++ b/README.md
@@ -325,7 +325,7 @@ You can use `sdscatprintf` in order to convert numbers into SDS strings:
```c
int some_integer = 100;
-sds num = sdscatprintf(sdsempty(),"%s\n", some_integer);
+sds num = sdscatprintf(sdsempty(),"%d\n", some_integer);
```
However this is slow and we have a special function to make it efficient.