summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge <[email protected]>2020-04-26 21:41:05 +0200
committerTyge <[email protected]>2020-04-26 21:41:05 +0200
commitcfccbd6d31b2f8c575bdbb1e43d07840fef35345 (patch)
tree6a4b9cbcb213771e3a86cac4237467bac5775f55
parent3cb4dbde06c56c9ba069ca54ad6c6334e3b56943 (diff)
downloadSTC-modified-cfccbd6d31b2f8c575bdbb1e43d07840fef35345.tar.gz
STC-modified-cfccbd6d31b2f8c575bdbb1e43d07840fef35345.zip
Updated doc.
-rw-r--r--EXAMPLE.md2
-rw-r--r--README.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/EXAMPLE.md b/EXAMPLE.md
index e4fb8249..f7d74b7f 100644
--- a/EXAMPLE.md
+++ b/EXAMPLE.md
@@ -78,7 +78,7 @@ Note we use struct PersonView to put keys in the map, but is stored as struct Pe
````
int main()
{
- CMap_ex m6 = cmap_ex_init;
+ CMap_ex m6 = cmap_init;
cmap_ex_put(&m6, (struct PersonView){"John", "Doe", 24}, cstring_make("dead"));
cmap_ex_put(&m6, (struct PersonView){"Jane", "Doe", 21}, cstring_make("another"));
cmap_ex_put(&m6, (struct PersonView){"John", "Travolta", 66}, cstring_make("actor"));
diff --git a/README.md b/README.md
index e6f2b1dd..46334366 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,7 @@ Simple CVector of 64bit ints:
declare_CVector(ix, int64_t); // ix is just an example tag name, use anything without underscore.
int main() {
- CVector_ix bignums = cvector_init; // or use cvector_ix_init; if initializing after declaration.
+ CVector_ix bignums = cvector_init; // = (CVector_ix) cvector_init; if initializing after declaration.
cvector_ix_reserve(&bignums, 100);
for (size_t i = 0; i<100; ++i)
cvector_ix_pushBack(&bignums, i * i * i);