Skip to content

Commit

Permalink
fix: confine the user further in variable exercises
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
EvanCarroll authored May 25, 2020
1 parent c7c3130 commit 06ef4cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exercises/variables/variables3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
fn main() {
let x = 3;
println!("Number {}", x);
x = 5;
x = 5; // don't change this line
println!("Number {}", x);
}
2 changes: 1 addition & 1 deletion exercises/variables/variables5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 06ef4cc

Please sign in to comment.