We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e06774e + 5fa50d9 commit 941d494Copy full SHA for 941d494
src/doc/book/src/variable-bindings.md
@@ -181,7 +181,7 @@ print.
181
# Scope and shadowing
182
183
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
+constrained to live in the block they were defined in. A block is a collection
185
of statements enclosed by `{` and `}`. Function definitions are also blocks!
186
In the following example we define two variable bindings, `x` and `y`, which
187
live in different blocks. `x` can be accessed from inside the `fn main() {}`
0 commit comments