mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-04 17:23:36 +02:00
Add solutions to functions
This commit is contained in:
@@ -4,6 +4,6 @@ fn main() {
|
||||
let mut x = 3;
|
||||
println!("Number {x}");
|
||||
|
||||
x = 5; // Don't change this line
|
||||
x = 5;
|
||||
println!("Number {x}");
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fn main() {
|
||||
let number = "T-H-R-E-E"; // Don't change this line
|
||||
let number = "T-H-R-E-E";
|
||||
println!("Spell a number: {}", number);
|
||||
|
||||
// Using variable shadowing
|
||||
|
||||
Reference in New Issue
Block a user