From 5fa50d995b2a07561268f9a371fb089170f16a11 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Sat, 18 Feb 2017 09:57:33 +0000 Subject: [PATCH] Variable Bindings possible nitpick Complete drive by nitpick I'm afraid --- src/doc/book/src/variable-bindings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/book/src/variable-bindings.md b/src/doc/book/src/variable-bindings.md index 0c8324d83e073..d6aa8b1acb72f 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() {}`