summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-05-25 16:31:21 +0200
committermo8it <mo8it@proton.me>2024-05-25 16:31:21 +0200
commit990c68efcba8e1e2b7f2d8c5b6c16885d3920010 (patch)
tree1b9e739b4eabee99db3f076505924cb2c00cf977 /exercises
parent8d4145038d8b1a2a31314669cc17dc42b1c8e616 (diff)
primitive_types1 solution
Diffstat (limited to 'exercises')
-rw-r--r--exercises/04_primitive_types/primitive_types1.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/exercises/04_primitive_types/primitive_types1.rs b/exercises/04_primitive_types/primitive_types1.rs
index 0002651..750d6e5 100644
--- a/exercises/04_primitive_types/primitive_types1.rs
+++ b/exercises/04_primitive_types/primitive_types1.rs
@@ -1,14 +1,12 @@
-// Fill in the rest of the line that has code missing!
-
fn main() {
- // Booleans (`bool`)
-
let is_morning = true;
if is_morning {
println!("Good morning!");
}
- let // Finish the rest of this line like the example! Or make it be false!
+ // TODO: Define a boolean variable with the name `is_evening` before the `if` statement below.
+ // The value of the variable should be the negation (opposite) of `is_morning`.
+ // let …
if is_evening {
println!("Good evening!");
}