diff options
| author | Tyge Løvset <[email protected]> | 2020-06-22 17:48:41 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-22 17:48:41 +0200 |
| commit | 3161c8896cf3d93cc3fdad4c1e8f8de190bafcfa (patch) | |
| tree | 1d147b2fa75b1446772d670b1ccd2d0d28f83c9f | |
| parent | d95738429aba4378168dd2bdd53517985319e094 (diff) | |
| download | STC-modified-3161c8896cf3d93cc3fdad4c1e8f8de190bafcfa.tar.gz STC-modified-3161c8896cf3d93cc3fdad4c1e8f8de190bafcfa.zip | |
Update README.md
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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.
|
