summaryrefslogtreecommitdiff
path: root/docs/syntax.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/syntax.md')
-rw-r--r--docs/syntax.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/syntax.md b/docs/syntax.md
index 1c28324..0f133ea 100644
--- a/docs/syntax.md
+++ b/docs/syntax.md
@@ -102,7 +102,7 @@
```text
add : `{[I64 x; I64 y] x + y }
-add `sync (1; 2)
+add `call (1; 2)
```
## Generators `^{[arguments] ... }`
@@ -111,6 +111,6 @@ add `sync (1; 2)
gen : ^{[I64 n]
@ 1 .. n {[x] `yield x }
}
-it : gen `sync 10
+it : gen `init 10
`next it
```