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
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|