From ba36bbcfe230e0df84149cc2c2f20891a17b3c22 Mon Sep 17 00:00:00 2001 From: Phil Ellison Date: Sun, 18 Jun 2017 10:37:05 +0100 Subject: [PATCH] Document control_style in Configurations.md --- Configurations.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) 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