]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/markdown-comment-with-options.rs
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[rust.git] / src / tools / rustfmt / tests / source / markdown-comment-with-options.rs
1 // rustfmt-wrap_comments: true
2
3 // Preserve two trailing whitespaces in doc comment,
4 // but trim any whitespaces in normal comment.
5
6 //! hello world  
7 //! hello world 
8
9 /// hello world    
10 /// hello world 
11 /// hello world  
12 fn foo() {
13     // hello world  
14     // hello world 
15     let x = 3;
16     println!("x = {}", x);
17 }