From 1ffd35c6db4845f43ff61da1bdb8929320dbc101 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 9 Mar 2018 15:34:12 -0500 Subject: [PATCH] Add a forward reference about mutability --- second-edition/nostarch/chapter02.md | 6 ++++-- second-edition/src/ch02-00-guessing-game-tutorial.md | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/second-edition/nostarch/chapter02.md b/second-edition/nostarch/chapter02.md index c91605774..eccf122fa 100644 --- a/second-edition/nostarch/chapter02.md +++ b/second-edition/nostarch/chapter02.md @@ -156,8 +156,10 @@ let foo = bar; ``` This line creates a new variable named `foo` and bind it to the value `bar`. In -Rust, variables are immutable by default. The following example shows how to -use `mut` before the variable name to make a variable mutable: +Rust, variables are immutable by default. We’ll be discussing this concept in +detail in the “Variables and Mutability” section in Chapter 3. The following +example shows how to use `mut` before the variable name to make a variable +mutable: ``` let foo = 5; // immutable diff --git a/second-edition/src/ch02-00-guessing-game-tutorial.md b/second-edition/src/ch02-00-guessing-game-tutorial.md index 52d2f84ae..a399afb98 100644 --- a/second-edition/src/ch02-00-guessing-game-tutorial.md +++ b/second-edition/src/ch02-00-guessing-game-tutorial.md @@ -156,8 +156,10 @@ let foo = bar; ``` This line creates a new variable named `foo` and bind it to the value `bar`. In -Rust, variables are immutable by default. The following example shows how to -use `mut` before the variable name to make a variable mutable: +Rust, variables are immutable by default. We’ll be discussing this concept in +detail in the “Variables and Mutability” section in Chapter 3. The following +example shows how to use `mut` before the variable name to make a variable +mutable: ```rust,ignore let foo = 5; // immutable