From cfccbd6d31b2f8c575bdbb1e43d07840fef35345 Mon Sep 17 00:00:00 2001 From: Tyge Date: Sun, 26 Apr 2020 21:41:05 +0200 Subject: Updated doc. --- EXAMPLE.md | 2 +- README.md | 2 +- 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); -- cgit v1.2.3