diff options
| author | Tyge Løvset <[email protected]> | 2021-09-23 21:11:39 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-09-23 21:11:39 +0200 |
| commit | 9f2cf3080ee03346cfe0e13b34505b1fd017fbe6 (patch) | |
| tree | f41aa0d6be0d3790c7e2946b635d93557123eee1 /docs/csmap_api.md | |
| parent | 92628f2487396ffaa67026a3f3a4b992a217ea0c (diff) | |
| download | STC-modified-9f2cf3080ee03346cfe0e13b34505b1fd017fbe6.tar.gz STC-modified-9f2cf3080ee03346cfe0e13b34505b1fd017fbe6.zip | |
fixed doc bugs
Diffstat (limited to 'docs/csmap_api.md')
| -rw-r--r-- | docs/csmap_api.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/csmap_api.md b/docs/csmap_api.md index c6adcea9..606903da 100644 --- a/docs/csmap_api.md +++ b/docs/csmap_api.md @@ -96,7 +96,7 @@ int main() { // Create an unordered_map of three strings (maps to string) csmap_str, colors = csmap_str_init(); - c_apply(csmap_str, emplace, &colors, { + c_apply_pair(csmap_str, emplace, &colors, { {"RED", "#FF0000"}, {"GREEN", "#00FF00"}, {"BLUE", "#0000FF"} @@ -141,7 +141,7 @@ int main() { uint32_t col = 0xcc7744ff; csmap_id idnames = csmap_id_init(); - c_apply(csmap_id, push_back, &idnames, { + c_apply_pair(csmap_id, emplace, &idnames, { {100, "Red"}, {110, "Blue"}, }); |
