@@ -9,7 +9,7 @@ LL | fn first_in_crate() {}
99 |
1010 = note: `-D clippy::empty-line-after-doc-comments` implied by `-D warnings`
1111 = 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
1313help: if the comment should document the crate use an inner doc comment
1414 |
1515LL ~ //! Meant to be an
2626LL | fn first_in_module() {}
2727 | ------------------ the comment documents this function
2828 |
29- = help: if the empty line is unintentional remove it
29+ = help: if the empty line is unintentional, remove it
3030help: if the comment should document the parent module use an inner doc comment
3131 |
3232LL ~ //! Meant to be an
@@ -44,7 +44,7 @@ LL | /// Blank line
4444LL | fn indented() {}
4545 | ----------- the comment documents this function
4646 |
47- = help: if the empty line is unintentional remove it
47+ = help: if the empty line is unintentional, remove it
4848help: if the documentation should include the empty line include it in the comment
4949 |
5050LL | ///
5959LL | fn with_doc_and_newline() {}
6060 | ----------------------- the comment documents this function
6161 |
62- = help: if the empty line is unintentional remove it
62+ = help: if the empty line is unintentional, remove it
6363
6464error: empty lines after doc comment
6565 --> tests/ui/empty_line_after/doc_comments.rs:44:1
7474LL | fn three_attributes() {}
7575 | ------------------- the comment documents this function
7676 |
77- = help: if the empty lines are unintentional remove them
77+ = help: if the empty lines are unintentional, remove them
7878
7979error: empty line after doc comment
8080 --> tests/ui/empty_line_after/doc_comments.rs:56:5
8686LL | fn new_code() {}
8787 | ----------- the comment documents this function
8888 |
89- = help: if the empty line is unintentional remove it
89+ = help: if the empty line is unintentional, remove it
9090help: if the doc comment should not document `new_code` comment it out
9191 |
9292LL | // /// docs for `old_code`
@@ -106,7 +106,7 @@ LL | |
106106LL | struct Multiple;
107107 | --------------- the comment documents this struct
108108 |
109- = help: if the empty lines are unintentional remove them
109+ = help: if the empty lines are unintentional, remove them
110110help: if the doc comment should not document `Multiple` comment it out
111111 |
112112LL ~ // /// Docs
@@ -128,7 +128,7 @@ LL | |
128128LL | fn first_in_module() {}
129129 | ------------------ the comment documents this function
130130 |
131- = help: if the empty line is unintentional remove it
131+ = help: if the empty line is unintentional, remove it
132132help: if the comment should document the parent module use an inner doc comment
133133 |
134134LL | /*!
@@ -147,7 +147,7 @@ LL | |
147147LL | fn new_code() {}
148148 | ----------- the comment documents this function
149149 |
150- = help: if the empty line is unintentional remove it
150+ = help: if the empty line is unintentional, remove it
151151help: if the doc comment should not document `new_code` comment it out
152152 |
153153LL - /**
@@ -165,7 +165,7 @@ LL | /// Docs for `new_code2`
165165LL | fn new_code2() {}
166166 | ------------ the comment documents this function
167167 |
168- = help: if the empty line is unintentional remove it
168+ = help: if the empty line is unintentional, remove it
169169help: if the doc comment should not document `new_code2` comment it out
170170 |
171171LL | // /// Docs for `old_code2`
@@ -180,7 +180,7 @@ LL | |
180180LL | fn bar() {}
181181 | ------ the comment documents this function
182182 |
183- = help: if the empty line is unintentional remove it
183+ = help: if the empty line is unintentional, remove it
184184
185185error: aborting due to 11 previous errors
186186
0 commit comments