aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-02-06 17:01:43 +0100
committerantirez <antirez@gmail.com>2014-02-06 17:01:43 +0100
commit616150d1144e955efa294a4ceb4de4913f77a203 (patch)
treec8a53b44bbefeb8ad85163c6e425fdda60addbd9
parent2ac40d2902104532297ba03e719b3c0670535f12 (diff)
downloadsds-616150d1144e955efa294a4ceb4de4913f77a203.tar.xz
README: Add C highlight in example it was missing.
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 02861c2..0a7f158 100644
--- a/README.md
+++ b/README.md
@@ -109,11 +109,13 @@ program holds an SDS string and not a C string, however this is not mandatory.
This is the simplest SDS program you can write that does something:
+ ```c
sds mystring = sdsnew("Hello World!");
printf("%s\n", mystring);
sdsfree(mystring);
output> Hello World!
+ ```
The above small program already shows a few important things about SDS: