mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-06-30 00:08:45 +00:00
10 lines
302 B
Rust
10 lines
302 B
Rust
fn main() {
|
|
let number = "T-H-R-E-E"; // Don't change this line
|
|
println!("Spell a number: {number}");
|
|
|
|
// TODO: Fix the compiler error by making `number` mutable.
|
|
// This exercise is about mutability, not shadowing.
|
|
number = 3;
|
|
println!("Number plus two is: {}", number + 2);
|
|
}
|