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

View File

@ -430,7 +430,7 @@ They can be used from static methods:
:::wren
Foo.setFromStatic("first")
Foo.bar.printFromStatic() //> first
Foo.printFromStatic() //> first
And also instance methods. When you do so, there is still only one static field
shared among all instances of the class:

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