summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-03-04 23:48:00 +0100
committerGitHub <[email protected]>2020-03-04 23:48:00 +0100
commit1ea284cd25615cfa227ea91ee20bfee920086333 (patch)
tree2dfde7756b82ffd7aafb16e22d4c03783bed4a4d
parent6d8ed20bb0d85e01e08bcff7c25b367730f9c0ff (diff)
downloadSTC-modified-1ea284cd25615cfa227ea91ee20bfee920086333.tar.gz
STC-modified-1ea284cd25615cfa227ea91ee20bfee920086333.zip
Update README.md
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index a9a0151a..fd882f3f 100644
--- a/README.md
+++ b/README.md
@@ -71,8 +71,8 @@ CMap with CString keys, and CString values. Values are not handled internally.
declare_CMap_STR(ss, CString, cstring_destroy);
CMap(ss) table = cmap_initializer;
-cmap_ss_put(&table, "Hello", 64);
-cmap_ss_put(&table, "Groovy", 121);
+cmap_ss_put(&table, "Hello", cstring_make("Goodbye"));
+cmap_ss_put(&table, "Groovy", cstring_make("Shaky"));
printf("%s\n", cmap_ss_get(&table, "Groovy")->value.str);
cmap_ss_destroy(&table); // frees key and value CStrings, and hash table (CVector).
```