mirror of
https://github.com/rust-lang/book.git
synced 2026-05-18 05:32:16 -04:00
Fix wrapping
This commit is contained in:
@@ -129,11 +129,10 @@ 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]<!-- ignore -->
|
||||
section in Chapter 2, you can declare a new variable with the same name as a
|
||||
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
|
||||
of the `let` keyword as follows:
|
||||
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 of the `let` keyword as follows:
|
||||
|
||||
<span class="filename">Filename: src/main.rs</span>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user