summaryrefslogtreecommitdiffhomepage
path: root/docs/cqueue_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-02-08 16:16:49 +0100
committerTyge Løvset <[email protected]>2023-02-08 17:18:24 +0100
commitc4441f5fc665194fbd7a894a67a64a08c3beac42 (patch)
tree82f231b6e8fcb75625166f98aa785baaa265a3d6 /docs/cqueue_api.md
parent673dd5319a488d4b702b94dd9aeda4e497ae4fbc (diff)
downloadSTC-modified-c4441f5fc665194fbd7a894a67a64a08c3beac42.tar.gz
STC-modified-c4441f5fc665194fbd7a894a67a64a08c3beac42.zip
Changed to use lowercase flow-control macros in examples (uppercase will still be supported). Improved many examples to use c_make() to init containers.
Diffstat (limited to 'docs/cqueue_api.md')
-rw-r--r--docs/cqueue_api.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/cqueue_api.md b/docs/cqueue_api.md
index 212cdabe..9ea4b148 100644
--- a/docs/cqueue_api.md
+++ b/docs/cqueue_api.md
@@ -70,13 +70,13 @@ int main() {
cqueue_i Q = cqueue_i_init();
// push() and pop() a few.
- c_FORRANGE (i, 20)
+ c_forrange (i, 20)
cqueue_i_push(&Q, i);
- c_FORRANGE (5)
+ c_forrange (5)
cqueue_i_pop(&Q);
- c_FOREACH (i, cqueue_i, Q)
+ c_foreach (i, cqueue_i, Q)
printf(" %d", *i.ref);
cqueue_i_drop(&Q);