diff options
| author | mokou <mokou@fastmail.com> | 2022-07-11 13:43:41 +0200 |
|---|---|---|
| committer | mokou <mokou@fastmail.com> | 2022-07-11 13:43:41 +0200 |
| commit | 81edc4234fbe40eee34f83bbc2995c69f9e1e07c (patch) | |
| tree | 8fc2a46b1c2ad65ac293da9e0f3577b2e9a4a952 /exercises | |
| parent | c3c21ad91fd66bcffedb85f542c1c830e1a7cdc0 (diff) | |
fix(variables): reorder and redo hint texts
Diffstat (limited to 'exercises')
| -rw-r--r-- | exercises/variables/variables1.rs | 2 | ||||
| -rw-r--r-- | exercises/variables/variables2.rs | 6 | ||||
| -rw-r--r-- | exercises/variables/variables3.rs | 6 | ||||
| -rw-r--r-- | exercises/variables/variables4.rs | 6 | ||||
| -rw-r--r-- | exercises/variables/variables5.rs | 2 | ||||
| -rw-r--r-- | exercises/variables/variables6.rs | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/exercises/variables/variables1.rs b/exercises/variables/variables1.rs index d1af831..f4d182a 100644 --- a/exercises/variables/variables1.rs +++ b/exercises/variables/variables1.rs @@ -1,6 +1,6 @@ // variables1.rs // Make me compile! -// Execute the command `rustlings hint variables1` if you want a hint :) +// Execute `rustlings hint variables1` or use the `hint` watch subcommand for a hint. // I AM NOT DONE diff --git a/exercises/variables/variables2.rs b/exercises/variables/variables2.rs index 7774a8f..641aeb8 100644 --- a/exercises/variables/variables2.rs +++ b/exercises/variables/variables2.rs @@ -1,13 +1,13 @@ // variables2.rs -// Make me compile! Execute the command `rustlings hint variables2` if you want a hint :) +// Execute `rustlings hint variables2` or use the `hint` watch subcommand for a hint. // I AM NOT DONE fn main() { let x; if x == 10 { - println!("Ten!"); + println!("x is ten!"); } else { - println!("Not ten!"); + println!("x is not ten!"); } } diff --git a/exercises/variables/variables3.rs b/exercises/variables/variables3.rs index 30ec48f..819b1bc 100644 --- a/exercises/variables/variables3.rs +++ b/exercises/variables/variables3.rs @@ -1,11 +1,9 @@ // variables3.rs -// Make me compile! Execute the command `rustlings hint variables3` if you want a hint :) +// Execute `rustlings hint variables3` or use the `hint` watch subcommand for a hint. // I AM NOT DONE fn main() { - let x = 3; - println!("Number {}", x); - x = 5; // don't change this line + let x: i32; println!("Number {}", x); } diff --git a/exercises/variables/variables4.rs b/exercises/variables/variables4.rs index 77f1e9a..54491b0 100644 --- a/exercises/variables/variables4.rs +++ b/exercises/variables/variables4.rs @@ -1,9 +1,11 @@ // variables4.rs -// Make me compile! Execute the command `rustlings hint variables4` if you want a hint :) +// Execute `rustlings hint variables4` or use the `hint` watch subcommand for a hint. // I AM NOT DONE fn main() { - let x: i32; + let x = 3; + println!("Number {}", x); + x = 5; // don't change this line println!("Number {}", x); } diff --git a/exercises/variables/variables5.rs b/exercises/variables/variables5.rs index 175eebb..7042d6f 100644 --- a/exercises/variables/variables5.rs +++ b/exercises/variables/variables5.rs @@ -1,5 +1,5 @@ // variables5.rs -// Make me compile! Execute the command `rustlings hint variables5` if you want a hint :) +// Execute `rustlings hint variables5` or use the `hint` watch subcommand for a hint. // I AM NOT DONE diff --git a/exercises/variables/variables6.rs b/exercises/variables/variables6.rs index 9866691..a852012 100644 --- a/exercises/variables/variables6.rs +++ b/exercises/variables/variables6.rs @@ -1,5 +1,5 @@ // variables6.rs -// Make me compile! Execute the command `rustlings hint variables6` if you want a hint :) +// Execute `rustlings hint variables6` or use the `hint` watch subcommand for a hint. // I AM NOT DONE |
