diff options
Diffstat (limited to 'docs/type_system/fn.md')
| -rw-r--r-- | docs/type_system/fn.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/type_system/fn.md b/docs/type_system/fn.md index dce371d..458719a 100644 --- a/docs/type_system/fn.md +++ b/docs/type_system/fn.md @@ -21,7 +21,7 @@ Yielding wraps the value in the transient union `Next` Return `Void` to stop iteration ```text -fn : Fn[x] $ ( @ 1 .. x { `yield 2 * x } ) +fn : Fn[n] $ ( @ 1 .. n { `yield 2 * x }[x] ) it : fn `sync 10 // invoking @ it { `log v }[v] // 2 4 6 8 10 12 14 16 18 20 @@ -30,7 +30,6 @@ it : fn `sync 10 # `sync it { .value { `log v }[v] .done { `break } - .error { `return e }[e] } } ``` |
