summaryrefslogtreecommitdiffhomepage
path: root/docs/cdeq_api.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/cdeq_api.md')
-rw-r--r--docs/cdeq_api.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/cdeq_api.md b/docs/cdeq_api.md
index 1840468c..6826946c 100644
--- a/docs/cdeq_api.md
+++ b/docs/cdeq_api.md
@@ -110,7 +110,9 @@ int main() {
printf(" %d", *i.ref);
puts("");
- c_apply(v, cdeq_i_push_back(&q, *v), int, {1, 4, 5, 22, 33, 2});
+ c_forarray (int, v, {1, 4, 5, 22, 33, 2})
+ cdeq_i_push_back(&q, *v)
+
c_foreach (i, cdeq_i, q)
printf(" %d", *i.ref);
puts("");