From 919bd0757fd11c67371e92d8d272b59731316251 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 8 Aug 2022 21:50:15 +0200 Subject: docs fix. --- docs/ccommon_api.md | 6 +++--- 1 file 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 ... -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) -- cgit v1.2.3