Fixing force_multiline_blocks=true snippet

This commit is contained in:
David Alber 2018-01-17 21:37:41 -08:00
parent f624f6b5a6
commit 8d0497bf83

View File

@ -1179,21 +1179,22 @@ fn main() {
#### `true`:
```rust
result.and_then(|maybe_value| {
match maybe_value {
None => ...,
Some(value) => ...,
}
})
match lorem {
None => {
if ipsum {
println!("Hello World");
fn main() {
result.and_then(|maybe_value| {
match maybe_value {
None => foo(),
Some(value) => bar(),
}
});
match lorem {
None => {
if ipsum {
println!("Hello World");
}
}
Some(dolor) => foo(),
}
Some(dolor) => ...,
}
```