aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Siegel <siegel.eric@gmail.com>2014-03-02 00:02:59 -0800
committerJohannes Löthberg <johannes@kyriasis.com>2014-12-03 19:30:06 +0100
commitee17c52e158b9ea1d5eed7ef34a232dff0616dea (patch)
treefa87098c5d912c3e9b1fe41a8786aabced168125
parent526df29f6f90cbbf079155555a6db2c18845852a (diff)
downloadsds-ee17c52e158b9ea1d5eed7ef34a232dff0616dea.tar.xz
Fixed variable naming in README for sdscatrepr.
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 5bded1a..058fafd 100644
--- a/README.md
+++ b/README.md
@@ -523,9 +523,9 @@ or binary data. The following is an example usage:
```c
sds s1 = sdsnew("abcd");
sds s2 = sdsempty();
-s[1] = 1;
-s[2] = 2;
-s[3] = '\n';
+s1[1] = 1;
+s1[2] = 2;
+s1[3] = '\n';
s2 = sdscatrepr(s2,s1,sdslen(s1));
printf("%s\n", s2);