mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-09 20:29:18 +00:00
fix(variables5): Add nudge for shadowing variable
This commit is contained in:
parent
cd2b5e8e3b
commit
9c4b6a35a1
@ -6,6 +6,6 @@
|
||||
fn main() {
|
||||
let number = "T-H-R-E-E"; // don't change this line
|
||||
println!("Spell a Number : {}", number);
|
||||
number = 3;
|
||||
number = 3; // don't rename this variable
|
||||
println!("Number plus two is : {}", number + 2);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user