summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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)));