Skip to content

Commit

Permalink
Rollup merge of rust-lang#39923 - mattyw:patch-1, r=steveklabnik
Browse files Browse the repository at this point in the history
Variable Bindings possible nitpick

Complete drive by nitpick I'm afraid
  • Loading branch information
GuillaumeGomez committed Feb 19, 2017
2 parents aff6161 + 5fa50d9 commit 4855fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/src/variable-bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}`
Expand Down

0 comments on commit 4855fd8

Please sign in to comment.