summaryrefslogtreecommitdiff
path: root/exercises/01_variables/variables4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/01_variables/variables4.rs')
-rw-r--r--exercises/01_variables/variables4.rs15
1 files changed, 5 insertions, 10 deletions
diff --git a/exercises/01_variables/variables4.rs b/exercises/01_variables/variables4.rs
index 5394f39..6c138b1 100644
--- a/exercises/01_variables/variables4.rs
+++ b/exercises/01_variables/variables4.rs
@@ -1,13 +1,8 @@
-// variables4.rs
-//
-// Execute `rustlings hint variables4` or use the `hint` watch subcommand for a
-// hint.
-
-// I AM NOT DONE
-
+// TODO: Fix the compiler error.
fn main() {
let x = 3;
- println!("Number {}", x);
- x = 5; // don't change this line
- println!("Number {}", x);
+ println!("Number {x}");
+
+ x = 5; // Don't change this line
+ println!("Number {x}");
}