docs: reflow all markdown files to 80-char width and add control-flow page with branching/looping content

This commit is contained in:
Bob Nystrom
2015-01-04 07:27:02 +00:00
parent 1951059c8f
commit 98d358142d
22 changed files with 1204 additions and 531 deletions
+6 -6
View File
@@ -17,8 +17,8 @@ defined, it can be accessed by name as you would expect.
## Scope
Wren has true block scope: a variable exists from the point where it is
defined until the end of the block where that definition appears.
Wren has true block scope: a variable exists from the point where it is defined
until the end of the [block](syntax.html#blocks) where that definition appears.
:::dart
{
@@ -28,10 +28,10 @@ defined until the end of the block where that definition appears.
}
IO.print(a) // ERROR! a doesn't exist anymore.
Variables defined at the top level of a script are *global*. All other variables
are *local*. Declaring a variable in an inner scope with the same name as an
outer one is called *shadowing* and is not an error (although it's not
something you likely intend to do much).
Variables defined at the top level of a script are *global*. All other
variables are *local*. Declaring a variable in an inner scope with the same
name as an outer one is called *shadowing* and is not an error (although it's
not something you likely intend to do much).
:::dart
var a = "outer"