From 9d4061059fed3e019b3ec3a4bb341ad64c07be69 Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylov@users.noreply.github.com> Date: Thu, 23 Sep 2021 21:14:46 +0200 Subject: Update csmap_api.md --- docs/csmap_api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/csmap_api.md b/docs/csmap_api.md index 606903da..a1d3a5c7 100644 --- a/docs/csmap_api.md +++ b/docs/csmap_api.md @@ -94,7 +94,7 @@ csmap_X_rawvalue_t csmap_X_value_toraw(csmap_X_value_t* pval); int main() { - // Create an unordered_map of three strings (maps to string) + // Create a sorted map of three strings (maps to string) csmap_str, colors = csmap_str_init(); c_apply_pair(csmap_str, emplace, &colors, { {"RED", "#FF0000"}, @@ -102,12 +102,12 @@ int main() {"BLUE", "#0000FF"} }); - // Iterate and print keys and values of unordered map + // Iterate and print keys and values of sorted map c_foreach (i, csmap_str, colors) { printf("Key:[%s] Value:[%s]\n", i.ref->first.str, i.ref->second.str); } - // Add two new entries to the unordered map + // Add two new entries to the sorted map csmap_str_emplace(&colors, "BLACK", "#000000"); csmap_str_emplace(&colors, "WHITE", "#FFFFFF"); -- cgit v1.2.3