From 1ea284cd25615cfa227ea91ee20bfee920086333 Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylo-work@users.noreply.github.com> Date: Wed, 4 Mar 2020 23:48:00 +0100 Subject: Update README.md --- README.md | 4 ++-- 1 file 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). ``` -- cgit v1.2.3