diff options
| author | Tyge Løvset <[email protected]> | 2022-03-01 21:25:10 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-03-01 21:25:10 +0100 |
| commit | c4301c6b492bb962a943335bf8df4920b2a699cf (patch) | |
| tree | da2c3b12c19ee092bf976922363e0665ce45481f /docs/cmap_api.md | |
| parent | e6b6d23abd95870afc632d6694a334e1e18c64f7 (diff) | |
| download | STC-modified-c4301c6b492bb962a943335bf8df4920b2a699cf.tar.gz STC-modified-c4301c6b492bb962a943335bf8df4920b2a699cf.zip | |
Fixed two minor bugs in cmap_api.md docs examples.
Diffstat (limited to 'docs/cmap_api.md')
| -rw-r--r-- | docs/cmap_api.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md index 656d4853..7f855041 100644 --- a/docs/cmap_api.md +++ b/docs/cmap_api.md @@ -250,7 +250,7 @@ int main() cmap_iv_insert(&vecs, 4, (Vec3i){100, 100, 100}); c_forpair (num, vec, cmap_iv, vecs) - printf("%d: { %3d, %3d, %3d }\n", _.num_, _.vec.x, _.vec.y, _.vec.z); + printf("%d: { %3d, %3d, %3d }\n", _.num, _.vec.x, _.vec.y, _.vec.z); } } ``` @@ -386,7 +386,7 @@ static inline RViking Viking_toraw(const Viking* vk) { int main() { c_auto (Vikings, vikings) { - c_apply(v, Vikings_emplace(&vikings, v), c_pair(v), Vikings_raw, { + c_apply(v, Vikings_emplace(&vikings, c_pair(v)), Vikings_raw, { { {"Einar", "Norway"}, 20 }, { {"Olaf", "Denmark"}, 24 }, { {"Harald", "Iceland"}, 12 }, |
