Variable Bindings possible nitpick

Complete drive by nitpick I'm afraid
This commit is contained in:
Matt Williams 2017-02-18 09:57:33 +00:00 committed by GitHub
parent 9f1762a058
commit 5fa50d995b

View File

@ -181,7 +181,7 @@ print.
# Scope and shadowing
Lets get back to bindings. Variable bindings have a scope - they are
constrained to live in a block they were defined in. A block is a collection
constrained to live in the block they were defined in. A block is a collection
of statements enclosed by `{` and `}`. Function definitions are also blocks!
In the following example we define two variable bindings, `x` and `y`, which
live in different blocks. `x` can be accessed from inside the `fn main() {}`