summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-03-05 10:58:41 +0100
committerGitHub <[email protected]>2020-03-05 10:58:41 +0100
commit003cdf867f7ffd0437ad4b9b99cfc221bc197e82 (patch)
tree4ed4e3d020b8976bf98aacfc9ab2f444799c121a
parent77b760f7b8e0daa36224d866f7716d0c2a07139a (diff)
downloadSTC-modified-003cdf867f7ffd0437ad4b9b99cfc221bc197e82.tar.gz
STC-modified-003cdf867f7ffd0437ad4b9b99cfc221bc197e82.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 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"));