summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/markdown-comment.rs
blob: 71a9921d2862897ac2180eadad27706e141ec706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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);
}