summaryrefslogtreecommitdiffhomepage
path: root/docs/cset_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/cset_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/cset_api.md')
-rw-r--r--docs/cset_api.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/cset_api.md b/docs/cset_api.md
index d9b412da..a5067b3b 100644
--- a/docs/cset_api.md
+++ b/docs/cset_api.md
@@ -97,13 +97,13 @@ int main ()
fifth = cset_str_clone(second);
c_foreach (i, cset_str, third)
- cset_str_emplace(&fifth, i.ref->str);
+ cset_str_emplace(&fifth, cstr_str(i.ref));
c_foreach (i, cset_str, fourth)
- cset_str_emplace(&fifth, i.ref->str);
+ cset_str_emplace(&fifth, cstr_str(i.ref));
}
printf("fifth contains:\n\n");
c_foreach (i, cset_str, fifth)
- printf("%s\n", i.ref->str);
+ printf("%s\n", cstr_str(i.ref));
}
}
```