1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-05-23 22:40:20 +02:00
2025-05-12 20:31:13 +02:00

10 lines
277 B
Rust

fn main() {
let number = "T-H-R-E-E";
println!("Spell a number: {number}");
// Using variable shadowing
// https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#shadowing
let number = 3;
println!("Number plus two is: {}", number + 2);
}