Compare commits

..

No commits in common. "990c68efcba8e1e2b7f2d8c5b6c16885d3920010" and "f2c3dcab3ac20e5aeddc7f792409727803da8bb8" have entirely different histories.

4 changed files with 11 additions and 22 deletions

8
Cargo.lock generated
View file

@ -506,9 +506,9 @@ dependencies = [
[[package]]
name = "parking_lot"
version = "0.12.3"
version = "0.12.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"
checksum = "7e4af0ca4f6caed20e900d564c242b8e5d4903fdacf31d3daf527b66fe6f42fb"
dependencies = [
"lock_api",
"parking_lot_core",
@ -825,9 +825,9 @@ dependencies = [
[[package]]
name = "syn"
version = "2.0.66"
version = "2.0.65"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5"
checksum = "d2863d96a84c6439701d7a38f9de935ec562c8832cc55d1dde0f513b52fad106"
dependencies = [
"proc-macro2",
"quote",

View file

@ -1,12 +1,14 @@
// 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!");
}
// 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 …
let // Finish the rest of this line like the example! Or make it be false!
if is_evening {
println!("Good evening!");
}

View file

@ -234,10 +234,7 @@ hint = "No hints this time ;)"
name = "primitive_types1"
dir = "04_primitive_types"
test = false
hint = """
In Rust, a boolean can be negated using the operator `!` before it.
Example: `!true == false`
This also works with boolean variables."""
hint = "No hints this time ;)"
[[exercises]]
name = "primitive_types2"

View file

@ -1,11 +1 @@
fn main() {
let is_morning = true;
if is_morning {
println!("Good morning!");
}
let is_evening = !is_morning;
if is_evening {
println!("Good evening!");
}
}
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰