Merge pull request #2469 from davidalber/fix-struct-lit-single-line-config-snippet

Using shorter example for `struct_lit_single_line` option
This commit is contained in:
Seiichi Uchida 2018-02-20 14:53:28 +09:00 committed by GitHub
commit 6c1e1dd720
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1630,7 +1630,9 @@ Put small struct literals on a single line
#### `true` (default):
```rust
let lorem = Lorem { ipsum: dolor, sit: amet };
fn main() {
let lorem = Lorem { foo: bar, baz: ofo };
}
```
#### `false`:
@ -1638,8 +1640,8 @@ let lorem = Lorem { ipsum: dolor, sit: amet };
```rust
fn main() {
let lorem = Lorem {
ipsum: dolor,
sit: amet,
foo: bar,
baz: ofo,
};
}
```