summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-15 22:00:28 +0100
committerTyge Løvset <[email protected]>2023-01-15 22:00:28 +0100
commitb94be0e98bd2d802784c36e0011013edb580f6f8 (patch)
tree61a27c745ec4b089054b9ef6dea14c652c7a16c7 /include
parentffeeb9dd42cc58c94005e85215d8db6bbb2a8806 (diff)
downloadSTC-modified-b94be0e98bd2d802784c36e0011013edb580f6f8.tar.gz
STC-modified-b94be0e98bd2d802784c36e0011013edb580f6f8.zip
Two more cspan docs fixes.
Diffstat (limited to 'include')
-rw-r--r--include/stc/cspan.h4
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);