Open jplatte opened 3 years ago
The same happens when setting format_code_in_doc_comments = true
, even if wrap_comments
is left at its default value.
Another example, affected when format_code_in_doc_comments = true
:
/// Filter: target contains self (case-insensitive string match)
///
// Note: the implemented method of caseless matching is not unicode compliant,
The blank line gets removed.
axum contains the following pattern (here):
With
wrap_comments = true
, rustfmt currently removes the//!
line before the#![doc]
attribute, merging two paragraphs ifsomething.md
also starts with regular text (not a heading or sth. like that).