summaryrefslogtreecommitdiffhomepage
path: root/docs/cpque_api.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/cpque_api.md')
-rw-r--r--docs/cpque_api.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/cpque_api.md b/docs/cpque_api.md
index 8b990be8..f3e36a3d 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_forrange (N)
+ c_forloop (N)
cpque_i_push(&heap, stc64_uniform(&rng, &dist));
// Add some negative ones.
int nums[] = {-231, -32, -873, -4, -343};
- c_forrange (i, c_arraylen(nums))
+ c_forloop (i, c_arraylen(nums))
cpque_i_push(&heap, nums[i]);
// Extract and display the fifty smallest.
- c_forrange (50) {
+ c_forloop (50) {
printf("%" PRIdMAX " ", *cpque_i_top(&heap));
cpque_i_pop(&heap);
}