rustfmt_nightly::attr

Function rewrite_initial_doc_comments

Source
fn rewrite_initial_doc_comments(
    context: &RewriteContext<'_>,
    attrs: &[Attribute],
    shape: Shape,
) -> Result<(usize, Option<String>), RewriteError>
Expand description

Rewrite the any doc comments which come before any other attributes.