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