summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-06-22 17:48:41 +0200
committerGitHub <[email protected]>2020-06-22 17:48:41 +0200
commit3161c8896cf3d93cc3fdad4c1e8f8de190bafcfa (patch)
tree1d147b2fa75b1446772d670b1ccd2d0d28f83c9f
parentd95738429aba4378168dd2bdd53517985319e094 (diff)
downloadSTC-modified-3161c8896cf3d93cc3fdad4c1e8f8de190bafcfa.tar.gz
STC-modified-3161c8896cf3d93cc3fdad4c1e8f8de190bafcfa.zip
Update README.md
-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.