Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Fix the Booleans

The boolean values below are stored as strings instead of real booleans. Fix them!

Expected output:

text
Is raining: true
Is sunny: false

Hint: In Rust, true and false should NOT have quotes around them.

rust
fn main() {
let is_raining = "true";
let is_sunny = "false";

println!("Is raining: {}", is_raining);
println!("Is sunny: {}", is_sunny);
}