summaryrefslogtreecommitdiffhomepage
path: root/docs/coroutine_api.md
diff options
context:
space:
mode:
authortylov <[email protected]>2023-08-11 23:11:01 +0200
committertylov <[email protected]>2023-08-11 23:11:01 +0200
commitea878349e94ef00643b2510045f6482385cff1a7 (patch)
treef2976d4f80da34b91815d72ba6a9fb9752dadfdb /docs/coroutine_api.md
parent31ba4b2a36dee10b7e5d58561a2c0291cff6faeb (diff)
downloadSTC-modified-ea878349e94ef00643b2510045f6482385cff1a7.tar.gz
STC-modified-ea878349e94ef00643b2510045f6482385cff1a7.zip
Updated godbolt code.
Diffstat (limited to 'docs/coroutine_api.md')
-rw-r--r--docs/coroutine_api.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/coroutine_api.md b/docs/coroutine_api.md
index 6bd558f2..f7d81a34 100644
--- a/docs/coroutine_api.md
+++ b/docs/coroutine_api.md
@@ -78,7 +78,7 @@ yield or await from a (deeply) nested coroutine call using cco_task objects desc
The first example is a generator of Pythagorian triples, and stops when diagonal size > max_c.
-[ [Run this code](https://godbolt.org/z/3Efn17cP6) ]
+[ [Run this code](https://godbolt.org/z/d5zW3f9Gv) ]
```c
#include <stc/coroutine.h>
#include <stdio.h>
@@ -126,7 +126,7 @@ The next variant skips the triples which are upscaled version of smaller ones by
the gcd() function. Note that the gcd1_triples struct contains the triples struct so that
both functions have separate call frames:
-[ [Run this code](https://godbolt.org/z/ndhMq1haj) ]
+[ [Run this code](https://godbolt.org/z/a7da9M8P5) ]
```c
int gcd(int a, int b) { // greatest common denominator
while (b) {