mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Wrapping control_brace_style="AlwaysSameLine" snippet in function
This commit is contained in:
+6
-4
@@ -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!");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user