Reword formatting for where clauses

Suggested-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
This commit is contained in:
Josh Triplett 2024-01-24 12:48:11 -08:00
parent 9ff777bf50
commit 163b1a6615

View File

@ -296,7 +296,7 @@ Prefer to use single-letter names for generic parameters.
These rules apply for `where` clauses on any item. These rules apply for `where` clauses on any item.
If a where clause is short, and appears on a short one-line function If a where clause is short, and appears on a short one-line function
declaration with no body or a short associated type with no `=`, format it on declaration with no body or on a short type with no `=`, format it on
the same line as the declaration: the same line as the declaration:
```rust ```rust