From cfd14e93d275e5b4daa95321058ef5a13e1e4ff4 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 19 Feb 2021 08:14:39 +0100 Subject: Minor docs. Updated csmap_v1.h --- docs/cmap_api.md | 2 +- docs/csmap_api.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') 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"); -- cgit v1.2.3