@@ -9,7 +9,7 @@ LL | fn first_in_crate() {}
9
9
|
10
10
= note: `-D clippy::empty-line-after-doc-comments` implied by `-D warnings`
11
11
= help: to override `-D warnings` add `#[allow(clippy::empty_line_after_doc_comments)]`
12
- = help: if the empty line is unintentional remove it
12
+ = help: if the empty line is unintentional, remove it
13
13
help: if the comment should document the crate use an inner doc comment
14
14
|
15
15
LL ~ //! Meant to be an
26
26
LL | fn first_in_module() {}
27
27
| ------------------ the comment documents this function
28
28
|
29
- = help: if the empty line is unintentional remove it
29
+ = help: if the empty line is unintentional, remove it
30
30
help: if the comment should document the parent module use an inner doc comment
31
31
|
32
32
LL ~ //! Meant to be an
@@ -44,7 +44,7 @@ LL | /// Blank line
44
44
LL | fn indented() {}
45
45
| ----------- the comment documents this function
46
46
|
47
- = help: if the empty line is unintentional remove it
47
+ = help: if the empty line is unintentional, remove it
48
48
help: if the documentation should include the empty line include it in the comment
49
49
|
50
50
LL | ///
59
59
LL | fn with_doc_and_newline() {}
60
60
| ----------------------- the comment documents this function
61
61
|
62
- = help: if the empty line is unintentional remove it
62
+ = help: if the empty line is unintentional, remove it
63
63
64
64
error: empty lines after doc comment
65
65
--> tests/ui/empty_line_after/doc_comments.rs:44:1
74
74
LL | fn three_attributes() {}
75
75
| ------------------- the comment documents this function
76
76
|
77
- = help: if the empty lines are unintentional remove them
77
+ = help: if the empty lines are unintentional, remove them
78
78
79
79
error: empty line after doc comment
80
80
--> tests/ui/empty_line_after/doc_comments.rs:56:5
86
86
LL | fn new_code() {}
87
87
| ----------- the comment documents this function
88
88
|
89
- = help: if the empty line is unintentional remove it
89
+ = help: if the empty line is unintentional, remove it
90
90
help: if the doc comment should not document `new_code` comment it out
91
91
|
92
92
LL | // /// docs for `old_code`
@@ -106,7 +106,7 @@ LL | |
106
106
LL | struct Multiple;
107
107
| --------------- the comment documents this struct
108
108
|
109
- = help: if the empty lines are unintentional remove them
109
+ = help: if the empty lines are unintentional, remove them
110
110
help: if the doc comment should not document `Multiple` comment it out
111
111
|
112
112
LL ~ // /// Docs
@@ -128,7 +128,7 @@ LL | |
128
128
LL | fn first_in_module() {}
129
129
| ------------------ the comment documents this function
130
130
|
131
- = help: if the empty line is unintentional remove it
131
+ = help: if the empty line is unintentional, remove it
132
132
help: if the comment should document the parent module use an inner doc comment
133
133
|
134
134
LL | /*!
@@ -147,7 +147,7 @@ LL | |
147
147
LL | fn new_code() {}
148
148
| ----------- the comment documents this function
149
149
|
150
- = help: if the empty line is unintentional remove it
150
+ = help: if the empty line is unintentional, remove it
151
151
help: if the doc comment should not document `new_code` comment it out
152
152
|
153
153
LL - /**
@@ -165,7 +165,7 @@ LL | /// Docs for `new_code2`
165
165
LL | fn new_code2() {}
166
166
| ------------ the comment documents this function
167
167
|
168
- = help: if the empty line is unintentional remove it
168
+ = help: if the empty line is unintentional, remove it
169
169
help: if the doc comment should not document `new_code2` comment it out
170
170
|
171
171
LL | // /// Docs for `old_code2`
@@ -180,7 +180,7 @@ LL | |
180
180
LL | fn bar() {}
181
181
| ------ the comment documents this function
182
182
|
183
- = help: if the empty line is unintentional remove it
183
+ = help: if the empty line is unintentional, remove it
184
184
185
185
error: aborting due to 11 previous errors
186
186
0 commit comments