Skip to content

Commit 0fdb502

Browse files
committed
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.
1 parent 6270257 commit 0fdb502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/rustdoc.css

Lines changed: 1 addition & 1 deletion
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)