summaryrefslogtreecommitdiffhomepage
path: root/examples/hashmap.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-08-08 16:13:05 +0200
committerTyge Løvset <[email protected]>2022-08-08 16:29:43 +0200
commitfea47e9b0b1f1137944a446d0d7e4b413f7bc2dd (patch)
treee62f48c37a87a732e83f1dc336ba697b47443f9d /examples/hashmap.c
parent1954c6aa34aae6301f90e81e546db6fb666c517a (diff)
downloadSTC-modified-fea47e9b0b1f1137944a446d0d7e4b413f7bc2dd.tar.gz
STC-modified-fea47e9b0b1f1137944a446d0d7e4b413f7bc2dd.zip
Changed *cstr_tolower*/*cstr_toupper* arg from `const cstr*` to `csview`.
Diffstat (limited to 'examples/hashmap.c')
-rw-r--r--examples/hashmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/hashmap.c b/examples/hashmap.c
index ac4e29bc..f59ed824 100644
--- a/examples/hashmap.c
+++ b/examples/hashmap.c
@@ -30,7 +30,7 @@ int main(void) {
else
printf("Don't have Daniel's number.");
- cmap_str_emplace(&contacts, "Daniel", "164-6743");
+ cmap_str_emplace_or_assign(&contacts, "Daniel", "164-6743");
if ((v = cmap_str_get(&contacts, "Ashley")))
printf("Calling Ashley: %s\n", call(cstr_str(&v->second)));