From ce745d76157c7e073ba3d5ea315ffc2657225f28 Mon Sep 17 00:00:00 2001 From: Gunnlaugur Thor Briem Date: Mon, 1 Mar 2021 21:59:29 +0000 Subject: [PATCH] fix: redundant double introduction of shadowing --- src/ch03-01-variables-and-mutability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch03-01-variables-and-mutability.md b/src/ch03-01-variables-and-mutability.md index 5ec077a57e..f7b3360d34 100644 --- a/src/ch03-01-variables-and-mutability.md +++ b/src/ch03-01-variables-and-mutability.md @@ -129,7 +129,7 @@ hardcoded value needed to be updated in the future. As you saw in the guessing game tutorial in the [“Comparing the Guess to the Secret Number”][comparing-the-guess-to-the-secret-number] section in Chapter 2, you can declare a new variable with the same name as a -previous variable, and the new variable shadows the previous variable. +previous variable. Rustaceans say that the first variable is *shadowed* by the second, which means that the second variable’s value is what appears when the variable is used. We can shadow a variable by using the same variable’s name and repeating the use