mirror of
https://github.com/rust-lang/rustlings
synced 2024-11-18 09:25:36 +00:00
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.
This commit is contained in:
parent
c7c3130507
commit
06ef4cc654
@ -6,6 +6,6 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
let x = 3;
|
let x = 3;
|
||||||
println!("Number {}", x);
|
println!("Number {}", x);
|
||||||
x = 5;
|
x = 5; // don't change this line
|
||||||
println!("Number {}", x);
|
println!("Number {}", x);
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// I AM NOT DONE
|
// I AM NOT DONE
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let number = "3";
|
let number = "3"; // don't change this line
|
||||||
println!("Number {}", number);
|
println!("Number {}", number);
|
||||||
number = 3;
|
number = 3;
|
||||||
println!("Number {}", number);
|
println!("Number {}", number);
|
||||||
|
Loading…
Reference in New Issue
Block a user