summaryrefslogtreecommitdiffhomepage
path: root/docs/csmap_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-24 23:53:56 +0200
committerTyge Løvset <[email protected]>2022-04-24 23:53:56 +0200
commit1ebbd367675a4a25c82b27da75301846fa315f4c (patch)
tree53c2947afaac64ac6505d45bd577a9843241f029 /docs/csmap_api.md
parent81b541b85f85b48660ceb461b851f1fb09d68344 (diff)
downloadSTC-modified-1ebbd367675a4a25c82b27da75301846fa315f4c.tar.gz
STC-modified-1ebbd367675a4a25c82b27da75301846fa315f4c.zip
Updated docs to use cstr_str(&s) instead of s.str
Diffstat (limited to 'docs/csmap_api.md')
-rw-r--r--docs/csmap_api.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/csmap_api.md b/docs/csmap_api.md
index ab9eb2ee..d4d9e755 100644
--- a/docs/csmap_api.md
+++ b/docs/csmap_api.md
@@ -113,7 +113,7 @@ int main()
// 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);
+ printf("Key:[%s] Value:[%s]\n", cstr_str(&i.ref->first), cstr_str(&i.ref->second));
}
// Add two new entries to the sorted map
@@ -163,7 +163,7 @@ int main()
csmap_id_emplace(&idnames, 100, "Green");
c_foreach (i, csmap_id, idnames)
- printf("%d: %s\n", i.ref->first, i.ref->second.str);
+ printf("%d: %s\n", i.ref->first, cstr_str(&i.ref->second));
}
}
```