Wrapping control_brace_style="AlwaysSameLine" snippet in function

This commit is contained in:
David Alber 2018-01-14 16:47:17 -08:00
parent 368a44b564
commit d49e22a2b8

View File

@ -529,10 +529,12 @@ Brace style for control flow constructs
#### `"AlwaysSameLine"` (default):
```rust
if lorem {
println!("ipsum!");
} else {
println!("dolor!");
fn main() {
if lorem {
println!("ipsum!");
} else {
println!("dolor!");
}
}
```