From c4441f5fc665194fbd7a894a67a64a08c3beac42 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 8 Feb 2023 16:16:49 +0100 Subject: Changed to use lowercase flow-control macros in examples (uppercase will still be supported). Improved many examples to use c_make() to init containers. --- docs/crandom_api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/crandom_api.md') diff --git a/docs/crandom_api.md b/docs/crandom_api.md index 391c485f..e69cc539 100644 --- a/docs/crandom_api.md +++ b/docs/crandom_api.md @@ -94,14 +94,14 @@ int main() // Create histogram map csmap_i mhist = csmap_i_init(); - c_FORRANGE (N) { + c_forrange (N) { int index = (int) round( stc64_normalf(&rng, &dist) ); csmap_i_emplace(&mhist, index, 0).ref->second += 1; } // Print the gaussian bar chart cstr bar = cstr_init(); - c_FOREACH (i, csmap_i, mhist) { + c_foreach (i, csmap_i, mhist) { int n = (int)(i.ref->second * StdDev * Scale * 2.5 / N); if (n > 0) { cstr_resize(&bar, n, '*'); -- cgit v1.2.3