Skip to content

Commit 5669c99

Browse files
committed
Auto merge of #43436 - zackmdavis:union_doc_fields_section_layout, r=GuillaumeGomez
rustdoc: fix layout of Fields section in documentation for unions Previously, the union fields would all render on the same line with hideous spacing; comparison to the analogous section for structs makes it undoubtable that `display: block` is the true intent. Concisely and definitively resolves #43404 and its perfidious malignancy.
2 parents 513906c + 0fdb502 commit 5669c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/rustdoc.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ span.since {
691691
margin-bottom: 25px;
692692
}
693693

694-
.enum .variant, .struct .structfield {
694+
.enum .variant, .struct .structfield, .union .structfield {
695695
display: block;
696696
}
697697

0 commit comments

Comments
 (0)