-
Notifications
You must be signed in to change notification settings - Fork 943
Labels
a-commentsa-markdownmarkdown formatting in doc commentsmarkdown formatting in doc commentsonly-with-optionrequires a non-default option value to reproducerequires a non-default option value to reproduce
Description
When a long line in a comment is followed by a code block, rustfmt may break the formatting on the code block.
Configuration
edition = "2021"
wrap_comments = true
unstable_features = true
Input
/// Here is me writing some documentation that is too long oh me oh my now some code please!
/// ```
/// test
/// ```
fn foo() {}
Output
/// Here is me writing some documentation that is too long oh me oh my now some
/// code please! ```
/// test
/// ```
fn foo() {}
Expected
/// Here is me writing some documentation that is too long oh me oh my now some
/// code please!
/// ```
/// test
/// ```
fn foo() {}
ModProg and grant0417
Metadata
Metadata
Assignees
Labels
a-commentsa-markdownmarkdown formatting in doc commentsmarkdown formatting in doc commentsonly-with-optionrequires a non-default option value to reproducerequires a non-default option value to reproduce