From fea47e9b0b1f1137944a446d0d7e4b413f7bc2dd Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 8 Aug 2022 16:13:05 +0200 Subject: Changed *cstr_tolower*/*cstr_toupper* arg from `const cstr*` to `csview`. --- examples/hashmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/hashmap.c') 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))); -- cgit v1.2.3