From 3161c8896cf3d93cc3fdad4c1e8f8de190bafcfa Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylov@users.noreply.github.com> Date: Mon, 22 Jun 2020 17:48:41 +0200 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3