Wrapping control_brace_style="AlwaysSameLine"
snippet in function
This commit is contained in:
parent
368a44b564
commit
d49e22a2b8
@ -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…
x
Reference in New Issue
Block a user