diff --git a/Configurations.md b/Configurations.md index 489b7e6cc50..0fcbd1e2af3 100644 --- a/Configurations.md +++ b/Configurations.md @@ -263,6 +263,40 @@ let (lorem, ipsum, _, _) = (1, 2, 3, 4); let (lorem, ipsum, ..) = (1, 2, 3, 4); ``` +## `control_style` + +Indent style for control flow statements + +- **Default value**: `"Rfc"` +- **Possible values**: `"Rfc"`, `"Legacy"` + +#### `"Rfc"`: + +```rust +// Conditional expression containing line-break +if lorem( + ipsum, + dolor, +) +{ + // ... +} +``` + +#### `"Legacy"`: + +```rust +// Conditional expression containing line-break +if lorem( + ipsum, + dolor, +) { + // ... +} +``` + +See also: [`control_brace_style`](#control_brace_style). + ## `control_brace_style` Brace style for control flow constructs