From d86a9b85cb4fb96430c7479ae6c956f2b605bbd1 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 6 Feb 2014 17:10:16 +0100 Subject: Fixed num to string example. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3-54-g00ecf