2018-02-22 06:09:53 +00:00
|
|
|
// primitive_types1.rs
|
2023-05-29 17:39:08 +00:00
|
|
|
//
|
|
|
|
// Fill in the rest of the line that has code missing! No hints, there's no
|
|
|
|
// tricks, just get used to typing these :)
|
2015-09-19 01:10:16 +00:00
|
|
|
|
2019-11-11 12:38:24 +00:00
|
|
|
// I AM NOT DONE
|
|
|
|
|
2015-09-19 01:10:16 +00:00
|
|
|
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!
|
|
|
|
if is_evening {
|
|
|
|
println!("Good evening!");
|
|
|
|
}
|
|
|
|
}
|