diff options
| author | mo8it <mo8it@proton.me> | 2024-05-21 02:43:18 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-05-21 02:43:18 +0200 |
| commit | d0b843d6c4a99636d3dc6caf3ceebea14cb3b07d (patch) | |
| tree | 2021b096bdd07d37abbf71ed1df3b0b58753f67a /solutions/01_variables | |
| parent | 0f4c42d54ea7322a4ee0ae7036c058c3061e80e9 (diff) | |
Add solutions to functions
Diffstat (limited to 'solutions/01_variables')
| -rw-r--r-- | solutions/01_variables/variables4.rs | 2 | ||||
| -rw-r--r-- | solutions/01_variables/variables5.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/solutions/01_variables/variables4.rs b/solutions/01_variables/variables4.rs index 0540caa..7de6bcb 100644 --- a/solutions/01_variables/variables4.rs +++ b/solutions/01_variables/variables4.rs @@ -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}"); } diff --git a/solutions/01_variables/variables5.rs b/solutions/01_variables/variables5.rs index 456dc9c..9057754 100644 --- a/solutions/01_variables/variables5.rs +++ b/solutions/01_variables/variables5.rs @@ -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 |
