]> git.lizzy.rs Git - rust.git/commitdiff
Configurations: fix where_density documentation
authorBen Boeckel <ben.boeckel@kitware.com>
Thu, 9 Nov 2017 19:10:37 +0000 (14:10 -0500)
committerBen Boeckel <ben.boeckel@kitware.com>
Thu, 9 Nov 2017 19:11:33 +0000 (14:11 -0500)
The default is actually `Vertical`.

Configurations.md

index 9cd8355e7b04aea75e114fc7f86f3fb35a58bf75..619900d18499c2482ebc39c172609ae2e5eb23e0 100644 (file)
@@ -2123,26 +2123,27 @@ let lorem = ipsum.map(|dolor| dolor.sit())?;
 
 Density of a where clause.
 
-- **Default value**: `"CompressedIfEmpty"`
+- **Default value**: `"Vertical"`
 - **Possible values**: `"Compressed"`, `"CompressedIfEmpty"`, `"Tall"`, `"Vertical"`
 
-#### `"CompressedIfEmpty"` (default):
+#### `"Vertical"` (default):
 
 ```rust
 trait Lorem {
     fn ipsum<Dolor>(dolor: Dolor) -> Sit
-    where Dolor: Eq;
+        where Dolor: Eq;
 
     fn ipsum<Dolor>(dolor: Dolor) -> Sit
-    where
-        Dolor: Eq,
+        where Dolor: Eq
     {
         // body
     }
 }
 ```
 
-#### `"Compressed"`:
+**Note:** `where_density = "Vertical"` currently produces the same output as `where_density = "Tall"`.
+
+#### `"CompressedIfEmpty"`:
 
 ```rust
 trait Lorem {
@@ -2150,47 +2151,46 @@ trait Lorem {
     where Dolor: Eq;
 
     fn ipsum<Dolor>(dolor: Dolor) -> Sit
-    where Dolor: Eq {
+    where
+        Dolor: Eq,
+    {
         // body
     }
 }
 ```
 
-#### `"Tall"`:
+#### `"Compressed"`:
 
 ```rust
 trait Lorem {
     fn ipsum<Dolor>(dolor: Dolor) -> Sit
-    where
-        Dolor: Eq;
+    where Dolor: Eq;
 
     fn ipsum<Dolor>(dolor: Dolor) -> Sit
-    where
-        Dolor: Eq,
-    {
+    where Dolor: Eq {
         // body
     }
 }
 ```
 
-**Note:** `where_density = "Tall"` currently produces the same output as `where_density = "Vertical"`.
-
-#### `"Vertical"`:
+#### `"Tall"`:
 
 ```rust
 trait Lorem {
     fn ipsum<Dolor>(dolor: Dolor) -> Sit
-        where Dolor: Eq;
+    where
+        Dolor: Eq;
 
     fn ipsum<Dolor>(dolor: Dolor) -> Sit
-        where Dolor: Eq
+    where
+        Dolor: Eq,
     {
         // body
     }
 }
 ```
 
-**Note:** `where_density = "Vertical"` currently produces the same output as `where_density = "Tall"`.
+**Note:** `where_density = "Tall"` currently produces the same output as `where_density = "Vertical"`.
 
 See also: [`where_layout`](#where_layout), [`where_pred_indent`](#where_pred_indent), [`where_style`](#where_style).