Skip to content

doc_comment_code_block_width doesn't work in inner comments #5461

@robertbastian

Description

@robertbastian

Code blocks in a //! doc comment don't seem to be formatted.

mod foo {
  //! ```
  //! horribly .formatted(code
  //! );
  //! ```
}

This is on nightly 2022-07-19 and on an older one as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-commentsArea: commentsP-lowLow priorityonly-with-optionRequires a non-default option value to reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions