24 lines
345 B
Rust
24 lines
345 B
Rust
|
fn main() {
|
||
|
match option {
|
||
|
None => {
|
||
|
if condition {
|
||
|
true
|
||
|
} else {
|
||
|
false
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
match option {
|
||
|
None => {
|
||
|
if condition {
|
||
|
true
|
||
|
} else {
|
||
|
false
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|