summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/markdown-comment-with-options.rs
blob: ede2bc0d035f5cd5a095d78eac7489e8a202c84f (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);
}