File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: c4d2cc401561b612fdf66705cb4ac415053fdec3
2
+ refs/heads/master: 6c295c0f49c880c895e21c4e7d741943cfed75e0
Original file line number Diff line number Diff line change @@ -115,9 +115,8 @@ fn write_desc(
115
115
desc : option < str >
116
116
) {
117
117
alt desc {
118
- some( _d) {
119
- ctxt. w . write_line ( "" ) ;
120
- ctxt. w . write_line ( _d) ;
118
+ some( desc) {
119
+ ctxt. w . write_line ( desc) ;
121
120
ctxt. w . write_line ( "" ) ;
122
121
}
123
122
none. { }
@@ -213,4 +212,12 @@ mod tests {
213
212
let markdown = render ( "#[doc(brief = \" brief\" )] fn a() { }" ) ;
214
213
assert str:: contains ( markdown, "brief\n \n " ) ;
215
214
}
215
+
216
+ #[ test]
217
+ fn should_leve_blank_line_between_brief_and_desc ( ) {
218
+ let markdown = render (
219
+ "#[doc(brief = \" brief\" , desc = \" desc\" )] fn a() { }"
220
+ ) ;
221
+ assert str:: contains ( markdown, "brief\n \n desc" ) ;
222
+ }
216
223
}
You can’t perform that action at this time.
0 commit comments