fix(variables5): Add nudge for shadowing variable

This commit is contained in:
gavin 2022-02-20 10:53:51 +05:30 committed by GitHub
parent cd2b5e8e3b
commit 9c4b6a35a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}