// Fix this code with shadowing
fn main() {
let x = "three"; // don't change this line
println!("Spell a Number : {}", x);
x = 3; // don't rename this variable
println!("Number plus two is : {}", x + 2);
}
Solution
fn main() {
let x = "three"; // don't change this line
println!("Spell a Number : {}", x);
let x = 3; // don't rename this variable
println!("Number plus two is : {}", x + 2);
}