mirror of https://github.com/rust-lang/rustlings
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
431 B
Rust
20 lines
431 B
Rust
// primitive_types1.rs
|
|
// Fill in the rest of the line that has code missing!
|
|
// No hints, there's no tricks, just get used to typing these :)
|
|
|
|
// I AM NOT DONE
|
|
|
|
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!");
|
|
}
|
|
}
|