]> git.lizzy.rs Git - rust.git/blobdiff - rustfmt-core/tests/source/markdown-comment.rs
Preserve trailing whitespaces only for doc comment
[rust.git] / rustfmt-core / tests / source / markdown-comment.rs
index 265f97faa0f75427ec2752630d43be54e3a3d323..c3633141ba5d59b32feec43b2b62cb2935ef36e4 100644 (file)
@@ -1,8 +1,12 @@
+// 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