Exerpad
🔥 0
0 XP
Exercise 3 · Chapter: VariablesRequired+50 XP

Fix the Variable

The code below tries to change a variable, but there's a bug. Find and fix it!

Expected output:

green
blue

Hint: In Rust, you need mut to change a variable's value.

rust
fn main() {
let color = "green";
println!("{}", color);
color = "blue";
println!("{}", color);
}
Output
Run your code to see the output here.