mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-25 21:34:18 +00:00
Wrapping match_block_trailing_comma=false
snippet in function
This commit is contained in:
parent
ee9bdeed7d
commit
44d2fcc2a0
@ -1091,11 +1091,13 @@ Put a trailing comma after a block based match arm (non-block arms are not affec
|
|||||||
#### `false` (default):
|
#### `false` (default):
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
match lorem {
|
fn main() {
|
||||||
Lorem::Ipsum => {
|
match lorem {
|
||||||
println!("ipsum");
|
Lorem::Ipsum => {
|
||||||
|
println!("ipsum");
|
||||||
|
}
|
||||||
|
Lorem::Dolor => println!("dolor"),
|
||||||
}
|
}
|
||||||
Lorem::Dolor => println!("dolor"),
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user