summaryrefslogtreecommitdiffhomepage
path: root/misc/examples
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-04-07 22:51:45 +0200
committerTyge Lovset <[email protected]>2023-04-07 22:51:45 +0200
commit701b7af4aaf9fe3965c656c500d9200dd7c4831d (patch)
treef94ce3f97bbed242ab5b021f641464543554cb19 /misc/examples
parent13eb85e05a88633454df7b62b80737fcc9d12238 (diff)
downloadSTC-modified-701b7af4aaf9fe3965c656c500d9200dd7c4831d.tar.gz
STC-modified-701b7af4aaf9fe3965c656c500d9200dd7c4831d.zip
More docs updating.
Diffstat (limited to 'misc/examples')
-rw-r--r--misc/examples/forloops.c2
-rw-r--r--misc/examples/functor.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/forloops.c b/misc/examples/forloops.c
index 82126456..1fc00614 100644
--- a/misc/examples/forloops.c
+++ b/misc/examples/forloops.c
@@ -42,7 +42,7 @@ int main()
printf(" %d", *i.ref);
puts("\n\nc_foreach_r: reverse");
- c_foreach_r (i, IVec, vec)
+ c_foreach_rv (i, IVec, vec)
printf(" %d", *i.ref);
puts("\n\nc_foreach in map:");
diff --git a/misc/examples/functor.c b/misc/examples/functor.c
index 7cc770d0..7417080b 100644
--- a/misc/examples/functor.c
+++ b/misc/examples/functor.c
@@ -9,7 +9,7 @@
#define i_type IPQue
#define i_val int
-#define i_extend bool (*less)(const int*, const int*)
+#define i_extend bool (*less)(const int*, const int*);
#define i_less(x, y) c_getcon(self)->less(x, y)
#define i_con cpque
#include <stc/extend.h>