mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-08-06 22:33:08 +02:00
primitive_types1 solution
This commit is contained in:
@ -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!");
|
||||
}
|
||||
|
Reference in New Issue
Block a user