diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2021-09-28 09:37:11 -0700 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2021-09-28 09:37:58 -0700 |
| commit | 53c534d11b289c8587128929306ad50cd3fe02f9 (patch) | |
| tree | 8c9048093c49997c1796ea370af950d9ec94a597 | |
| parent | 25850fc264ff71fcdbfd3594e8d5a299d7dbe2c0 (diff) | |
| download | rust-53c534d11b289c8587128929306ad50cd3fe02f9.tar.gz rust-53c534d11b289c8587128929306ad50cd3fe02f9.zip | |
Update clippy_lints/src/doc.rs
Co-authored-by: Cameron Steffen <cam.steffen94@gmail.com>
| -rw-r--r-- | clippy_lints/src/doc.rs | 2 | ||||
| -rw-r--r-- | tests/ui/doc_unsafe.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/doc.rs b/clippy_lints/src/doc.rs index 0a9edfd7334..ce540c38478 100644 --- a/clippy_lints/src/doc.rs +++ b/clippy_lints/src/doc.rs @@ -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", ); } }, diff --git a/tests/ui/doc_unsafe.stderr b/tests/ui/doc_unsafe.stderr index d540abd1262..34ca37a6efd 100644 --- a/tests/ui/doc_unsafe.stderr +++ b/tests/ui/doc_unsafe.stderr @@ -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 { |
