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, 2 insertions, 2 deletions
diff --git a/docs/cdeq_api.md b/docs/cdeq_api.md
index bfe2447c..969cecc2 100644
--- a/docs/cdeq_api.md
+++ b/docs/cdeq_api.md
@@ -111,8 +111,8 @@ int main() {
printf(" %d", *i.ref);
puts("");
- c_forarray (int, v, {1, 4, 5, 22, 33, 2})
- cdeq_i_push_back(&q, *v)
+ c_forlist (i, int, {1, 4, 5, 22, 33, 2})
+ cdeq_i_push_back(&q, *i.ref)
c_foreach (i, cdeq_i, q)
printf(" %d", *i.ref);