Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
As seen here: https://doc.rust-lang.org/std/sync/struct.Weak.html
These docs:
/// pointer, which returns an [`Option`]`<`[`Arc`]`<T>>`.
render like this:
Those extra spaces shouldn't be there.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.

Activity
Mark-Simulacrum commentedon May 15, 2017
https://doc.rust-lang.org/nightly/std/sync/struct.Weak.html is a better link, I think -- stable doesn't have this documentation quite yet.
steveklabnik commentedon May 15, 2017
gah, yes, thank you
tommyip commentedon May 15, 2017
Seems like a problem with CSS padding of
<code>blocks.The current rendered HTML looks like:
I guess we want it to be like:
GuillaumeGomez commentedon May 15, 2017
That's wanted. I added it this way to make easier to spot if different types are present.
kzys commentedon Sep 1, 2018
Personally I don't like the spacing. IDEs and even other sections in Rustdoc (e.g.
pub fn upgrade(&self) -> Option<Arc<T>>) doesn't have spacing around types like that.Or maybe we can change padding from 0.2em to 0.1em?
joshtriplett commentedon Sep 18, 2018
👍 for fixing this spacing.
GuillaumeGomez commentedon Sep 18, 2018
Ok, I'll reduce it (but won't remove it).
Rollup merge of rust-lang#54368 - GuillaumeGomez:reduce-side-padding,…