]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/markdown-comment-with-options.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / tools / rustfmt / tests / target / 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 }