summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-23 21:14:46 +0200
committerGitHub <[email protected]>2021-09-23 21:14:46 +0200
commit9d4061059fed3e019b3ec3a4bb341ad64c07be69 (patch)
treee3c07cc6bcb36ab19749caf886a76e85e547cbea
parent9f2cf3080ee03346cfe0e13b34505b1fd017fbe6 (diff)
downloadSTC-modified-9d4061059fed3e019b3ec3a4bb341ad64c07be69.tar.gz
STC-modified-9d4061059fed3e019b3ec3a4bb341ad64c07be69.zip
Update csmap_api.md
-rw-r--r--docs/csmap_api.md6
1 files changed, 3 insertions, 3 deletions
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");