summaryrefslogtreecommitdiffhomepage
path: root/examples/words.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/words.c')
-rw-r--r--examples/words.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/words.c b/examples/words.c
index af637b8d..9e0fc0cc 100644
--- a/examples/words.c
+++ b/examples/words.c
@@ -29,7 +29,7 @@ int main1()
cmap_si word_map = cmap_ini;
c_foreach (w, cvec_str, words)
- cmap_si_insert(&word_map, w.item->str, 0).item->value += 1;
+ cmap_si_emplace(&word_map, w.item->str, 0).item->value += 1;
c_foreach (pair, cmap_si, word_map) {
printf("%d occurrences of word '%s'\n",