Skip to content

Commit 53c534d

Browse files
Update clippy_lints/src/doc.rs
Co-authored-by: Cameron Steffen <cam.steffen94@gmail.com>
1 parent 25850fc commit 53c534d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ impl<'tcx> LateLintPass<'tcx> for DocMarkdown {
242242
cx,
243243
MISSING_SAFETY_DOC,
244244
item.span,
245-
"unsafe trait's docs miss `# Safety` section",
245+
"docs for unsafe trait missing `# Safety` section",
246246
);
247247
}
248248
},

tests/ui/doc_unsafe.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ error: unsafe function's docs miss `# Safety` section
2222
LL | unsafe fn woefully_underdocumented(self);
2323
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2424

25-
error: unsafe trait's docs miss `# Safety` section
25+
error: docs for unsafe trait missing `# Safety` section
2626
--> $DIR/doc_unsafe.rs:44:1
2727
|
2828
LL | / pub unsafe trait UnsafeTrait {

0 commit comments

Comments
 (0)