File tree 2 files changed +15
-4
lines changed
2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,9 @@ impl<'a> CommentStyle<'a> {
91
91
| CommentStyle :: TripleSlash
92
92
| CommentStyle :: Custom ( ..)
93
93
| CommentStyle :: Doc => "" ,
94
- CommentStyle :: DoubleBullet => " **/" ,
95
- CommentStyle :: SingleBullet | CommentStyle :: Exclamation => " */" ,
94
+ CommentStyle :: SingleBullet | CommentStyle :: DoubleBullet | CommentStyle :: Exclamation => {
95
+ " */"
96
+ }
96
97
}
97
98
}
98
99
@@ -101,8 +102,9 @@ impl<'a> CommentStyle<'a> {
101
102
CommentStyle :: DoubleSlash => "// " ,
102
103
CommentStyle :: TripleSlash => "/// " ,
103
104
CommentStyle :: Doc => "//! " ,
104
- CommentStyle :: SingleBullet | CommentStyle :: Exclamation => " * " ,
105
- CommentStyle :: DoubleBullet => " ** " ,
105
+ CommentStyle :: SingleBullet | CommentStyle :: DoubleBullet | CommentStyle :: Exclamation => {
106
+ " * "
107
+ }
106
108
CommentStyle :: Custom ( opener) => opener,
107
109
}
108
110
}
Original file line number Diff line number Diff line change
1
+ // rustfmt-wrap_comments: true
2
+
3
+ /** foobar */
4
+ const foo1: u32 = 0;
5
+
6
+ /**
7
+ * foobar
8
+ */
9
+ const foo2: u32 = 0;
You can’t perform that action at this time.
0 commit comments