Skip to content

Commit 941d494

Browse files
committed
Auto merge of rust-lang#39923 - mattyw:patch-1, r=steveklabnik
Variable Bindings possible nitpick Complete drive by nitpick I'm afraid
2 parents e06774e + 5fa50d9 commit 941d494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/src/variable-bindings.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ print.
181181
# Scope and shadowing
182182

183183
Let’s get back to bindings. Variable bindings have a scope - they are
184-
constrained to live in a block they were defined in. A block is a collection
184+
constrained to live in the block they were defined in. A block is a collection
185185
of statements enclosed by `{` and `}`. Function definitions are also blocks!
186186
In the following example we define two variable bindings, `x` and `y`, which
187187
live in different blocks. `x` can be accessed from inside the `fn main() {}`

0 commit comments

Comments
 (0)