From 372cd3e1979d51385dddf690047ce637e2115bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= Date: Fri, 6 Apr 2018 10:34:12 +0200 Subject: [PATCH] Small documentation fixes --- doc/site/classes.markdown | 2 +- doc/site/concurrency.markdown | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/site/classes.markdown b/doc/site/classes.markdown index e436d3e6..2b5659fe 100644 --- a/doc/site/classes.markdown +++ b/doc/site/classes.markdown @@ -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: diff --git a/doc/site/concurrency.markdown b/doc/site/concurrency.markdown index a2839ab3..812184e2 100644 --- a/doc/site/concurrency.markdown +++ b/doc/site/concurrency.markdown @@ -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