summaryrefslogtreecommitdiffhomepage
path: root/misc/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-06-13 18:24:52 +0200
committerTyge Løvset <[email protected]>2023-06-13 18:24:52 +0200
commitc51bdc8d8aeac63c0af955f81593ef0be326a7e0 (patch)
tree0ff50eab85967c8d900fbcaadf8b0ada67ade942 /misc/examples
parent06f3ae1d904d776aea8a78113c16fc30309817ed (diff)
downloadSTC-modified-c51bdc8d8aeac63c0af955f81593ef0be326a7e0.tar.gz
STC-modified-c51bdc8d8aeac63c0af955f81593ef0be326a7e0.zip
Missed an update
Diffstat (limited to 'misc/examples')
-rw-r--r--misc/examples/coroutines.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/coroutines.c b/misc/examples/coroutines.c
index 040b8472..1e900fa1 100644
--- a/misc/examples/coroutines.c
+++ b/misc/examples/coroutines.c
@@ -102,7 +102,7 @@ int main(void)
{
struct combined c = {.prm={.count=8}, .fib={14}};
- cco_run(&c, combined(&c)) {
+ cco_block_on(&c, combined) {
printf("Prime(%d)=%lld, Fib(%d)=%lld\n",
c.prm.idx, c.prm.result,
c.fib.idx, c.fib.result);