Wrapping control_brace_style="AlwaysSameLine" snippet in function
This commit is contained in:
parent
368a44b564
commit
d49e22a2b8
1 changed files with 6 additions and 4 deletions
|
|
@ -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!");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue