forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit c0945f0
authored
Rollup merge of rust-lang#123116 - chloekek:rustdoc-variant-swap-fields-doc, r=GuillaumeGomez
rustdoc: Swap fields and variant documentations
Previously, the documentation for a variant appeared after the documentation for each of its fields. This was inconsistent with structs and unions, and made little sense on its own; fields are subordinate to variants and should therefore appear later in the documentation.
Before:

After:
1 file changed
+2
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1728 | 1728 |
| |
1729 | 1729 |
| |
1730 | 1730 |
| |
1731 | + | ||
1732 | + | ||
1731 | 1733 |
| |
1732 | 1734 |
| |
1733 | 1735 |
| |
| |||
1789 | 1791 |
| |
1790 | 1792 |
| |
1791 | 1793 |
| |
1792 | - | ||
1793 | - | ||
1794 | 1794 |
| |
1795 | 1795 |
| |
1796 | 1796 |
| |
|
0 commit comments