From 7284d15c625ffcdb773381e8e764915cd7fc5613 Mon Sep 17 00:00:00 2001 From: reki Date: Sun, 7 Jun 2020 17:53:19 +0800 Subject: [PATCH] Corrected sample code in readme. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 94e0e44..00162bd 100644 --- a/README.md +++ b/README.md @@ -541,9 +541,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);