summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-24 07:09:28 +0200
committerTyge Løvset <[email protected]>2021-09-24 07:09:28 +0200
commita52c0374d8b4c65bf3d36295737c78690e847980 (patch)
treeef35fea9af10b99d7e6d7171030bf073354a4767
parent23f5994392dc3a3ad4a1b680f4453cba21e632eb (diff)
parent9d4061059fed3e019b3ec3a4bb341ad64c07be69 (diff)
downloadSTC-modified-a52c0374d8b4c65bf3d36295737c78690e847980.tar.gz
STC-modified-a52c0374d8b4c65bf3d36295737c78690e847980.zip
Merge branch 'master' of github.com:tylov/STC into master
-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");