diff options
| author | bors <bors@rust-lang.org> | 2017-02-20 08:16:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-02-20 08:16:31 +0000 |
| commit | 941d494a6aaa3c4882f02afc1287008d145ce262 (patch) | |
| tree | 477a3b3e6f1b68da6bdae03a21b06b3a2742b993 | |
| parent | e06774ece31afefad219cb20bcf0218a496753c2 (diff) | |
| parent | 5fa50d995b2a07561268f9a371fb089170f16a11 (diff) | |
Auto merge of #39923 - mattyw:patch-1, r=steveklabnik
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() {}` |
