summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index dc9d9f33..081c3061 100644
--- a/README.md
+++ b/README.md
@@ -112,7 +112,7 @@ cstring_destroy(&lookup);
The predefined shorthand macro *declare_CHash_string()* defines a CHash container with a CString as key, but you may use it like:
```
chash_si_put(&map, "mykey", 12);
-int x = chash_si_get(&mykey")->value; // no allocation of string key happening here.
+int x = chash_si_get(&map, "mykey")->value; // no allocation of string key happening here.
```
An alternative would be to use *char* * as key type, but you would the need to manage memory of the hash string keys yourself.