diff options
| author | Matt Williams <gh@mattyw.net> | 2017-02-18 09:57:33 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-18 09:57:33 +0000 |
| commit | 5fa50d995b2a07561268f9a371fb089170f16a11 (patch) | |
| tree | fe8ffe367ad85179ceb5aa116099d37617724003 | |
| parent | 9f1762a05830acbb31351b2c5305bc47f53363c8 (diff) | |
Variable Bindings possible nitpick
Complete drive by nitpick I'm afraid
| -rw-r--r-- | src/doc/book/src/variable-bindings.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/src/variable-bindings.md b/src/doc/book/src/variable-bindings.md index 0c8324d83e0..d6aa8b1acb7 100644 --- a/src/doc/book/src/variable-bindings.md +++ b/src/doc/book/src/variable-bindings.md @@ -181,7 +181,7 @@ print. # Scope and shadowing Let’s 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() {}` |
