]> git.lizzy.rs Git - rust.git/commitdiff
docs: Adds where_single_line in configuration documentation
authorDeepak Thukral <deepak.thukral@fagbokforlaget.no>
Thu, 30 Nov 2017 12:01:41 +0000 (13:01 +0100)
committerDeepak Thukral <deepak.thukral@fagbokforlaget.no>
Thu, 30 Nov 2017 12:01:41 +0000 (13:01 +0100)
Configurations.md

index 7726193fafe24c7ba6a644a9b283ce3445a988f7..aaf6d813320a997eae4d5a8f9a09f28a790cf749 100644 (file)
@@ -906,6 +906,37 @@ fn lorem() -> usize {
 
 See also [`control_brace_style`](#control_brace_style).
 
+
+## `where_single_line`
+
+To force single line where layout
+
+- **Default value**: `false`
+- **Possible values**: `true`, `false`
+
+#### `false` (default):
+
+```rust
+impl<T> Lorem for T
+where
+    Option<T>: Ipsum,
+{
+    ...
+}
+```
+
+#### `true`:
+
+```rust
+impl<T> Lorem for T where
+    Option<T>: Ipsum {
+    ...
+}
+```
+
+See also [`brace_style`](#brace_style), [`control_brace_style`](#control_brace_style).
+
+
 ## `force_explicit_abi`
 
 Always print the abi for extern items