1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2024-12-22 00:18:09 -05:00
rustlings/solutions/01_variables/variables5.rs

10 lines
279 B
Rust
Raw Normal View History

2024-05-20 19:47:57 -04:00
fn main() {
2024-05-20 20:43:18 -04:00
let number = "T-H-R-E-E";
2024-05-20 19:47:57 -04:00
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);
}