diff options
| author | Tyge Løvset <[email protected]> | 2021-02-19 08:14:39 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-02-19 08:14:39 +0100 |
| commit | cfd14e93d275e5b4daa95321058ef5a13e1e4ff4 (patch) | |
| tree | 485e1570f8978f0d004628c5963f44d53d0b0636 /docs/cmap_api.md | |
| parent | b87f71d04b1c8c26df55540124f4940a8f87b81b (diff) | |
| download | STC-modified-cfd14e93d275e5b4daa95321058ef5a13e1e4ff4.tar.gz STC-modified-cfd14e93d275e5b4daa95321058ef5a13e1e4ff4.zip | |
Minor docs. Updated csmap_v1.h
Diffstat (limited to 'docs/cmap_api.md')
| -rw-r--r-- | docs/cmap_api.md | 2 |
1 files changed, 1 insertions, 1 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"); |
