Configurations: fix where_density documentation

The default is actually `Vertical`.
This commit is contained in:
Ben Boeckel 2017-11-09 14:10:37 -05:00
parent 1bb927e46f
commit 4d547b38a7

View file

@ -2123,10 +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;
fn ipsum<Dolor>(dolor: Dolor) -> Sit
where Dolor: Eq
{
// body
}
}
```
**Note:** `where_density = "Vertical"` currently produces the same output as `where_density = "Tall"`.
#### `"CompressedIfEmpty"`:
```rust
trait Lorem {
@ -2175,23 +2192,6 @@ trait Lorem {
**Note:** `where_density = "Tall"` currently produces the same output as `where_density = "Vertical"`.
#### `"Vertical"`:
```rust
trait Lorem {
fn ipsum<Dolor>(dolor: Dolor) -> Sit
where Dolor: Eq;
fn ipsum<Dolor>(dolor: Dolor) -> Sit
where Dolor: Eq
{
// body
}
}
```
**Note:** `where_density = "Vertical"` currently produces the same output as `where_density = "Tall"`.
See also: [`where_layout`](#where_layout), [`where_pred_indent`](#where_pred_indent), [`where_style`](#where_style).
## `where_layout`