diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/cmap_api.md | 2 | ||||
| -rw-r--r-- | docs/csmap_api.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md index 7cb88177..04cfccf8 100644 --- a/docs/cmap_api.md +++ b/docs/cmap_api.md @@ -177,7 +177,7 @@ int main() /* put replaces existing mapped value: */ cmap_id_put(&idnames, 110, "White"); /* put a constructed mapped value into map: */ - cmap_id_put_mapped(&idnames, 120, cstr_from_fmt("#%08x", col)); + cmap_id_insert_or_assign(&idnames, 120, cstr_from_fmt("#%08x", col)); /* emplace inserts only when key does not exist: */ cmap_id_emplace(&idnames, 100, "Green"); diff --git a/docs/csmap_api.md b/docs/csmap_api.md index 1d0e9708..72f90f08 100644 --- a/docs/csmap_api.md +++ b/docs/csmap_api.md @@ -154,7 +154,7 @@ int main() /* put replaces existing mapped value: */ csmap_id_put(&idnames, 110, "White"); /* put a constructed mapped value into map: */ - csmap_id_put_mapped(&idnames, 120, cstr_from_fmt("#%08x", col)); + csmap_id_insert_or_assign(&idnames, 120, cstr_from_fmt("#%08x", col)); /* emplace inserts only when key does not exist: */ csmap_id_emplace(&idnames, 100, "Green"); |
