Skip to content

Rustdoc: odd wrapping in code blocks #41025

Closed
@ghost

Description

Link to docs: https://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html
How it looks on my machine:

Notice the space before {. Also, that indentation: where is seemingly indented by two spaces, while fn is indented by four. However, if I copy the code and paste here, it looks normal:

pub trait Borrow<Borrowed> where Borrowed: ?Sized {
    fn borrow(&self) -> &Borrowed;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions