Skip to content

headings in struct field documentation has confusing spacing #132009

Open
@lolbinarycat

Description

example:

struct Foo {
   /// blah blah blah
   ///
   /// # Heading
   ///
   /// blah blah blah
   a: u8,
   b: u16,
}

there will be a large upper margin on the heading, making it visually unclear what the second paragraph corresponds to.

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions