From 003cdf867f7ffd0437ad4b9b99cfc221bc197e82 Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylo-work@users.noreply.github.com> Date: Thu, 5 Mar 2020 10:58:41 +0100 Subject: Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a249cf6..1874a962 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ cmap_ii_destroy(&nums); Simple CMap with CString keys -> int values ``` #include "cmap.h" -declare_CMap_STR(si, int); // Just a shorthand macro for the general declare call. +declare_CMap_StringKey(si, int); // Just a shorthand macro for the general declare call. // Keys strings are "magically" managed internally, although CMap is ignorant of CString. CMap_si nums = cmap_initializer; @@ -74,7 +74,7 @@ cmap_si_destroy(&nums); CMap with CString keys -> CString values. Temporary values are created by "make", and moved to the container. ``` #include "cmap.h" -declare_CMap_STR(ss, CString, cstring_destroy); +declare_CMap_StringKey(ss, CString, cstring_destroy); CMap_ss table = cmap_initializer; cmap_ss_put(&table, "Hello", cstring_make("Goodbye")); -- cgit v1.2.3