diff options
| -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);
|
