Skip to content

Commit

Permalink
rustdoc: fix layout of Fields section in documentation for unions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zackmdavis committed Jul 23, 2017
1 parent 6270257 commit 0fdb502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ span.since {
margin-bottom: 25px;
}

.enum .variant, .struct .structfield {
.enum .variant, .struct .structfield, .union .structfield {
display: block;
}

Expand Down

0 comments on commit 0fdb502

Please sign in to comment.