Skip to content

Commit 06ef4cc

Browse files
authored
fix: confine the user further in variable exercises
We want to teach a specific lesson. To ensure that we do, let's try to provide more clarity on what the user should not do.
1 parent c7c3130 commit 06ef4cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exercises/variables/variables3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
fn main() {
77
let x = 3;
88
println!("Number {}", x);
9-
x = 5;
9+
x = 5; // don't change this line
1010
println!("Number {}", x);
1111
}

exercises/variables/variables5.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// I AM NOT DONE
55

66
fn main() {
7-
let number = "3";
7+
let number = "3"; // don't change this line
88
println!("Number {}", number);
99
number = 3;
1010
println!("Number {}", number);

0 commit comments

Comments
 (0)