Skip to content

Blank line between doc comment or outer attr and the thing it's attached to #213

@joshtriplett

Description

@joshtriplett
/// item comment for main

fn main() {
    println!("Hello, world!");
}

I would expect the blank line to get removed, but it isn't. I think we should fix this over a style edition.

@traviscross pointed out that the same thing applies to outer attributes:

#[attribute_for_main]

fn main() {
    println!("Hello, world!");
}

I think we should normalize this case to zero blank lines, as well.

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