diff options
| author | Tyge Løvset <[email protected]> | 2022-10-19 15:50:51 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-10-19 15:50:51 +0200 |
| commit | 0441f3844410c64b7e2d4a2604b4254b851e64c8 (patch) | |
| tree | 2b30f21536fd589b890fa4644732e963036a9113 /docs/cpque_api.md | |
| parent | bb3a457e5c2c9e6b069ab3dfba10f9d21686b035 (diff) | |
| download | STC-modified-0441f3844410c64b7e2d4a2604b4254b851e64c8.tar.gz STC-modified-0441f3844410c64b7e2d4a2604b4254b851e64c8.zip | |
Reverted back to c_forrrange from c_forloop. Still available but deprecated.
Diffstat (limited to 'docs/cpque_api.md')
| -rw-r--r-- | docs/cpque_api.md | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |
