Skip to content

Commit

Permalink
Update clippy_lints/src/doc.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron Steffen <cam.steffen94@gmail.com>
  • Loading branch information
Manishearth and camsteffen committed Sep 28, 2021
1 parent 25850fc commit 53c534d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/doc.rs
Expand Up @@ -242,7 +242,7 @@ impl<'tcx> LateLintPass<'tcx> for DocMarkdown {
cx,
MISSING_SAFETY_DOC,
item.span,
"unsafe trait's docs miss `# Safety` section",
"docs for unsafe trait missing `# Safety` section",
);
}
},
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/doc_unsafe.stderr
Expand Up @@ -22,7 +22,7 @@ error: unsafe function's docs miss `# Safety` section
LL | unsafe fn woefully_underdocumented(self);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

0 comments on commit 53c534d

Please sign in to comment.