-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)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
On https://doc.rust-lang.org/std/borrow/enum.Cow.html, the summary at the top of the page is:
pub enum Cow<'a, B>
where
B: 'a + [ToOwned](https://doc.rust-lang.org/std/borrow/trait.ToOwned.html) + ?[Sized](https://doc.rust-lang.org/std/marker/trait.Sized.html),
{
Borrowed([&'a ](https://doc.rust-lang.org/std/primitive.reference.html)B),
Owned(<B as [ToOwned](https://doc.rust-lang.org/std/borrow/trait.ToOwned.html)>::[Owned](https://doc.rust-lang.org/std/borrow/trait.ToOwned.html#associatedtype.Owned)),
}
The opening curly brace should be aligned to the left, matching the closing curly brace:
pub enum Cow<'a, B>
where
B: 'a + [ToOwned](https://doc.rust-lang.org/std/borrow/trait.ToOwned.html) + ?[Sized](https://doc.rust-lang.org/std/marker/trait.Sized.html),
{
Borrowed([&'a ](https://doc.rust-lang.org/std/primitive.reference.html)B),
Owned(<B as [ToOwned](https://doc.rust-lang.org/std/borrow/trait.ToOwned.html)>::[Owned](https://doc.rust-lang.org/std/borrow/trait.ToOwned.html#associatedtype.Owned)),
}
Metadata
Metadata
Assignees
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)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.