We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c57393e commit 85254c9Copy full SHA for 85254c9
src/doc/style-guide/src/items.md
@@ -367,14 +367,14 @@ where
367
## Type aliases
368
369
Keep type aliases on one line when they fit. If necessary to break the line, do
370
-so after the `=`, and block-indent the right-hand side:
+so before the `=`, and block-indent the right-hand side:
371
372
```rust
373
pub type Foo = Bar<T>;
374
375
// If multi-line is required
376
-type VeryLongType<T, U: SomeBound> =
377
- AnEvenLongerType<T, U, Foo<T>>;
+type VeryLongType<T, U: SomeBound>
+ = AnEvenLongerType<T, U, Foo<T>>;
378
```
379
380
Where possible avoid `where` clauses and keep type constraints inline. Where
0 commit comments