summaryrefslogtreecommitdiff
path: root/exercises/variables
diff options
context:
space:
mode:
authorEvan Carroll <me@evancarroll.com>2020-05-25 03:09:11 -0500
committerGitHub <noreply@github.com>2020-05-25 10:09:11 +0200
commit06ef4cc654e75d22a526812919ee49b8956280bf (patch)
treee8f62b8a43e0afd880e5fef379a95111fcefa0af /exercises/variables
parentc7c3130507c987bf9d7312e6d9ac69908cad3a49 (diff)
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.
Diffstat (limited to 'exercises/variables')
-rw-r--r--exercises/variables/variables3.rs2
-rw-r--r--exercises/variables/variables5.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/exercises/variables/variables3.rs b/exercises/variables/variables3.rs
index 07b1a52..30ec48f 100644
--- a/exercises/variables/variables3.rs
+++ b/exercises/variables/variables3.rs
@@ -6,6 +6,6 @@
fn main() {
let x = 3;
println!("Number {}", x);
- x = 5;
+ x = 5; // don't change this line
println!("Number {}", x);
}
diff --git a/exercises/variables/variables5.rs b/exercises/variables/variables5.rs
index 47a68a5..5b2c2fa 100644
--- a/exercises/variables/variables5.rs
+++ b/exercises/variables/variables5.rs
@@ -4,7 +4,7 @@
// I AM NOT DONE
fn main() {
- let number = "3";
+ let number = "3"; // don't change this line
println!("Number {}", number);
number = 3;
println!("Number {}", number);