summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/markdown-comment-with-options.rs
blob: 2c4d6a5cc2be9e48df52bc50d682c1bcf443374f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// rustfmt-wrap_comments: true

// 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);
}