mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-26 05:44:26 +00:00
Fix control_style example
This commit is contained in:
parent
ba36bbcfe2
commit
55c2e3b1a4
@ -273,11 +273,9 @@ Indent style for control flow statements
|
||||
#### `"Rfc"`:
|
||||
|
||||
```rust
|
||||
// Conditional expression containing line-break
|
||||
if lorem(
|
||||
ipsum,
|
||||
dolor,
|
||||
)
|
||||
if lorem_ipsum &&
|
||||
dolor_sit &&
|
||||
amet_consectetur
|
||||
{
|
||||
// ...
|
||||
}
|
||||
@ -286,11 +284,9 @@ if lorem(
|
||||
#### `"Legacy"`:
|
||||
|
||||
```rust
|
||||
// Conditional expression containing line-break
|
||||
if lorem(
|
||||
ipsum,
|
||||
dolor,
|
||||
) {
|
||||
if lorem_ipsum &&
|
||||
dolor_sit &&
|
||||
amet_consectetur {
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user