rust/tests/target/markdown-comment.rs
2018-03-02 15:07:13 +13:00

16 lines
283 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);
}