diff options
| author | Tyge <[email protected]> | 2020-04-26 21:41:05 +0200 |
|---|---|---|
| committer | Tyge <[email protected]> | 2020-04-26 21:41:05 +0200 |
| commit | cfccbd6d31b2f8c575bdbb1e43d07840fef35345 (patch) | |
| tree | 6a4b9cbcb213771e3a86cac4237467bac5775f55 | |
| parent | 3cb4dbde06c56c9ba069ca54ad6c6334e3b56943 (diff) | |
| download | STC-modified-cfccbd6d31b2f8c575bdbb1e43d07840fef35345.tar.gz STC-modified-cfccbd6d31b2f8c575bdbb1e43d07840fef35345.zip | |
Updated doc.
| -rw-r--r-- | EXAMPLE.md | 2 | ||||
| -rw-r--r-- | README.md | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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"));
@@ -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);
|
