From 0441f3844410c64b7e2d4a2604b4254b851e64c8 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 19 Oct 2022 15:50:51 +0200 Subject: Reverted back to c_forrrange from c_forloop. Still available but deprecated. --- docs/cpque_api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/cpque_api.md') diff --git a/docs/cpque_api.md b/docs/cpque_api.md index f3e36a3d..8b990be8 100644 --- a/docs/cpque_api.md +++ b/docs/cpque_api.md @@ -76,16 +76,16 @@ int main() c_auto (cpque_i, heap) { // Push ten million random numbers to priority queue. - c_forloop (N) + c_forrange (N) cpque_i_push(&heap, stc64_uniform(&rng, &dist)); // Add some negative ones. int nums[] = {-231, -32, -873, -4, -343}; - c_forloop (i, c_arraylen(nums)) + c_forrange (i, c_arraylen(nums)) cpque_i_push(&heap, nums[i]); // Extract and display the fifty smallest. - c_forloop (50) { + c_forrange (50) { printf("%" PRIdMAX " ", *cpque_i_top(&heap)); cpque_i_pop(&heap); } -- cgit v1.2.3