diff options
| author | Tyge Lovset <[email protected]> | 2023-04-07 22:51:45 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2023-04-07 22:51:45 +0200 |
| commit | 701b7af4aaf9fe3965c656c500d9200dd7c4831d (patch) | |
| tree | f94ce3f97bbed242ab5b021f641464543554cb19 /misc/examples | |
| parent | 13eb85e05a88633454df7b62b80737fcc9d12238 (diff) | |
| download | STC-modified-701b7af4aaf9fe3965c656c500d9200dd7c4831d.tar.gz STC-modified-701b7af4aaf9fe3965c656c500d9200dd7c4831d.zip | |
More docs updating.
Diffstat (limited to 'misc/examples')
| -rw-r--r-- | misc/examples/forloops.c | 2 | ||||
| -rw-r--r-- | misc/examples/functor.c | 2 |
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> |
