rust/rustfmt-core/tests/source/markdown-comment.rs
topecongiro 6f38a4aeab Preserve two or more trailing spaces in doc comment
rustdoc treats two or more trailing spaces as a line break.
2018-02-15 16:41:47 +09:00

16 lines
288 B
Rust

// Preserve two trailing whitespaces in doc comment,
// but trim any whitespaces in normal comment.
//! hello world
//! hello world
/// hello world
/// hello world
/// hello world
fn foo() {
// hello world
// hello world
let x = 3;
println!("x = {}", x);
}