diff options
| author | Tyge Løvset <[email protected]> | 2023-01-15 22:00:28 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-01-15 22:00:28 +0100 |
| commit | b94be0e98bd2d802784c36e0011013edb580f6f8 (patch) | |
| tree | 61a27c745ec4b089054b9ef6dea14c652c7a16c7 /include | |
| parent | ffeeb9dd42cc58c94005e85215d8db6bbb2a8806 (diff) | |
| download | STC-modified-b94be0e98bd2d802784c36e0011013edb580f6f8.tar.gz STC-modified-b94be0e98bd2d802784c36e0011013edb580f6f8.zip | |
Two more cspan docs fixes.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/cspan.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/cspan.h b/include/stc/cspan.h index f5114a11..1a432a4d 100644 --- a/include/stc/cspan.h +++ b/include/stc/cspan.h @@ -35,12 +35,12 @@ int demo1() { for (size_t j=0; j<ms.dim[1]; j++) *cspan_at(&ms, i, j) = i*1000 + j; - printf("%f\n", *cspan_at(&span, 3, 4)); + printf("%f\n", *cspan_at(&ms, 3, 4)); } int demo2() { int array[] = {1, 2, 3, 4, 5}; - Intspan span = cspan_from(array); + Intspan span = cspan_from_array(array); c_FOREACH (i, Intspan, span) printf(" %d", *i.ref); |
