From 5b94ec1bb6a9c8bae7624aaf137be32ca947529d Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Mon, 18 Jul 2016 21:33:18 -0400 Subject: [PATCH] Add a reference now that ownership discusses scope This now isn't the first time you should have seen this if you're reading in order. --- src/ch04-02-variable-bindings-in-detail.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ch04-02-variable-bindings-in-detail.md b/src/ch04-02-variable-bindings-in-detail.md index 9a241cf64..e8c79977e 100644 --- a/src/ch04-02-variable-bindings-in-detail.md +++ b/src/ch04-02-variable-bindings-in-detail.md @@ -209,9 +209,9 @@ Using `mut`, we change the value that `x` binds to from `5` to `6`. ### Variable Binding Scope -Another important thing to know about variable bindings is that they are only -valid as long as they are *in scope*. That scope begins at the point where the -binding is declared, and ends with the curly brace that closes the block of +As we discussed in the ownership section of Chapter XX, variable bindings are +only valid as long as they are *in scope*. That scope begins at the point where +the binding is declared and ends with the curly brace that closes the block of code containing that binding. We cannot access bindings "before they come into scope" or "after they go out of scope." Here’s an example to illustrate this: