summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-08-08 21:50:15 +0200
committerTyge Løvset <[email protected]>2022-08-08 21:50:15 +0200
commit919bd0757fd11c67371e92d8d272b59731316251 (patch)
tree46e23e12c387947c84f4ed5186e7268b2a32b1f9
parent8e2f3b4aef0b5e8de66d02ca6268c13846cc05a0 (diff)
downloadSTC-modified-919bd0757fd11c67371e92d8d272b59731316251.tar.gz
STC-modified-919bd0757fd11c67371e92d8d272b59731316251.zip
docs fix.
-rw-r--r--docs/ccommon_api.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md
index 45c5e166..b4a90036 100644
--- a/docs/ccommon_api.md
+++ b/docs/ccommon_api.md
@@ -141,11 +141,11 @@ c_forarray (int, v, {1, 2, 3})
cvec_i_push_back(&vec, *v);
// insert in existing map
-c_forarray (cmap_ii_raw, v, {{4, 5}, {6, 7}})
+c_forarray (cmap_ii_raw, v, { {4, 5}, {6, 7} })
cmap_ii_insert(&map, v->first, v->second);
// even define an anonymous struct inside it (no commas allowed)
-c_forarray (struct { int a; int b; }, v, {{1, 2}, {3, 4}, {5, 6}})
+c_forarray (struct { int a; int b; }, v, { {1, 2}, {3, 4}, {5, 6} })
printf("(%d %d) ", v->a, v->b);
// `c_forarray_p` is required for pointer type elements
@@ -167,7 +167,7 @@ c_forarray_p (const char*, v, {"Hello", "crazy", "world"})
#define i_tag ii
#include <stc/csmap.h>
...
-c_forarray (csmap_ii_value, v, {{23,1}, {3,2}, {7,3}, {5,4}, {12,5}})
+c_forarray (csmap_ii_value, v, { {23,1}, {3,2}, {7,3}, {5,4}, {12,5} })
csmap_ii_insert(&map, v->first, v->second);
c_foreach (i, csmap_ii, map)