mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Wrapping control_brace_style="AlwaysNextLine" snippet in function
This commit is contained in:
+9
-7
@@ -541,13 +541,15 @@ fn main() {
|
||||
#### `"AlwaysNextLine"`:
|
||||
|
||||
```rust
|
||||
if lorem
|
||||
{
|
||||
println!("ipsum!");
|
||||
}
|
||||
else
|
||||
{
|
||||
println!("dolor!");
|
||||
fn main() {
|
||||
if lorem
|
||||
{
|
||||
println!("ipsum!");
|
||||
}
|
||||
else
|
||||
{
|
||||
println!("dolor!");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user