rust/tests/source/issue-5835.rs
xxchan f89cd3c1f3
Don't treat lines starting with . or ) as ordered markdown lists (#5839)
Fixes 5835

Ordered markdown lists start with 0-9 digits followed by a `.` or a `)`.
Now, rustfmt ensure that the `.` or `)` is only preceded by numeric
characters before deciding that it's reached an `ItemizedBlock`
2023-08-29 08:46:44 -04:00

9 lines
90 B
Rust

// rustfmt-wrap_comments: true
/// . a
pub fn foo() {}
pub fn main() {
// . a
}