Skip to content

Doc: 'empty' documentation block causes display issues #39339

@ghost

Description

Using /// blocks with whitespaces only displaces the associated declaration. This behaviour isn't displayed when no whitespaces are used.

It's fairly easy to reproduce:

// will cause display issues, note the whitespaces
///    
pub fn foo() {}

// ok, no whitespaces
///
pub fn bar() {}

cc @GuillaumeGomez

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions