mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
22 lines
306 B
Rust
22 lines
306 B
Rust
fn main() {
|
|
match option {
|
|
None => if condition {
|
|
true
|
|
} else {
|
|
false
|
|
},
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
match option {
|
|
None => {
|
|
if condition {
|
|
true
|
|
} else {
|
|
false
|
|
}
|
|
}
|
|
}
|
|
}
|