Small documentation fixes

This commit is contained in:
Thorbjørn Lindeijer
2018-04-06 10:34:12 +02:00
parent 7487eeab49
commit 372cd3e197
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -148,14 +148,14 @@ method calls — the entire callstack — gets suspended. For example:
:::wren
var fiber = Fiber.new {
(1..10).map {|i|
(1..10).each {|i|
Fiber.yield(i)
}
}
Here, we're calling `yield()` from within a [function](functions.html) being
passed to the `map()` method. This works fine in Wren because that inner
`yield()` call will suspend the call to `map()` and the function passed to it
passed to the `each()` method. This works fine in Wren because that inner
`yield()` call will suspend the call to `each()` and the function passed to it
as a callback.
## Transferring control