rustlings/solutions/01_variables/variables5.rs
Denis-Cosmin NUTIU 06573e87ac initial commit
2024-10-28 22:46:17 +02:00

9 lines
279 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);
}