summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-01-05 15:57:21 +0100
committerTyge Løvset <[email protected]>2021-01-05 15:57:21 +0100
commit728398de810e196d17ddf7bd05c03307dffbb2b1 (patch)
tree4661bb4d6e47103eb5161e94761fb5a0af406f90 /docs
parent95798cc5e392aeb2a0b98b2ea1fa8220a8788d95 (diff)
downloadSTC-modified-728398de810e196d17ddf7bd05c03307dffbb2b1.tar.gz
STC-modified-728398de810e196d17ddf7bd05c03307dffbb2b1.zip
Doc fix causing error at github.
Diffstat (limited to 'docs')
-rw-r--r--docs/cmap_api.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md
index 75f2ac21..ee20793e 100644
--- a/docs/cmap_api.md
+++ b/docs/cmap_api.md
@@ -227,17 +227,17 @@ int main()
cmap_v3_put(&vecs, (Vec3i){100, 100, 100}, 4);
c_foreach (i, cmap_v3, vecs)
- printf("{%4d, %4d, %4d}: %d\n", i.ref->first.x, i.ref->first.y, i.ref->first.z, i.ref->second);
+ printf("{ %3d, %3d, %3d }: %d\n", i.ref->first.x, i.ref->first.y, i.ref->first.z, i.ref->second);
cmap_v3_del(&vecs);
}
```
Output:
```c
-{ 100, 0, 0}: 1
-{ 0, 0, 100}: 3
-{ 100, 100, 100}: 4
-{ 0, 100, 0}: 2
+{ 100, 0, 0 }: 1
+{ 0, 0, 100 }: 3
+{ 100, 100, 100 }: 4
+{ 0, 100, 0 }: 2
```
### Example 4
@@ -260,17 +260,17 @@ int main()
cmap_iv_put(&vecs, 4, (Vec3i){100, 100, 100});
c_foreach (i, cmap_iv, vecs)
- printf("%d: {%4d, %4d, %4d}\n", i.ref->first, i.ref->second.x, i.ref->second.y, i.ref->second.z);
+ printf("%d: { %3d, %3d, %3d }\n", i.ref->first, i.ref->second.x, i.ref->second.y, i.ref->second.z);
cmap_iv_del(&vecs);
}
```
Output:
```c
-4: { 100, 100, 100}
-3: { 0, 0, 100}
-2: { 0, 100, 0}
-1: { 100, 0, 0}
+4: { 100, 100, 100 }
+3: { 0, 0, 100 }
+2: { 0, 100, 0 }
+1: { 100, 0, 0 }
```
### Example 5