]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/markdown-comment-with-options.rs
Rollup merge of #84083 - ltratt:threadid_doc_tweak, r=dtolnay
[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 }