about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsurechen <chenshuo17@huawei.com>2021-10-21 14:33:43 +0800
committersurechen <chenshuo17@huawei.com>2021-10-21 14:33:43 +0800
commitabb7ae9a79cdeeb6a892f19120a87ed4dba77b17 (patch)
treeb2fdbd2c5e318925f7c01a1ce63a1df2dc2cca74
parent300b821d51969261469b61d1cf87eaab01e64284 (diff)
downloadrust-abb7ae9a79cdeeb6a892f19120a87ed4dba77b17.tar.gz
rust-abb7ae9a79cdeeb6a892f19120a87ed4dba77b17.zip
Fix typo for INVALID_NULL_PTR_USAGE and MISSING_INLINE_IN_PUBLIC_ITEMS.
-rw-r--r--clippy_lints/src/missing_inline.rs2
-rw-r--r--clippy_lints/src/ptr.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/clippy_lints/src/missing_inline.rs b/clippy_lints/src/missing_inline.rs
index 667cdd83025..b593c747498 100644
--- a/clippy_lints/src/missing_inline.rs
+++ b/clippy_lints/src/missing_inline.rs
@@ -8,7 +8,7 @@ use rustc_span::sym;
 
 declare_clippy_lint! {
     /// ### What it does
-    /// it lints if an exported function, method, trait method with default impl,
+    /// It lints if an exported function, method, trait method with default impl,
     /// or trait method impl is not `#[inline]`.
     ///
     /// ### Why is this bad?
diff --git a/clippy_lints/src/ptr.rs b/clippy_lints/src/ptr.rs
index d180d6f9227..92a4801a846 100644
--- a/clippy_lints/src/ptr.rs
+++ b/clippy_lints/src/ptr.rs
@@ -139,6 +139,7 @@ declare_clippy_lint! {
     /// unsafe { std::slice::from_raw_parts(ptr::null(), 0); }
     /// ```
     ///
+    /// ```ignore
     /// // Good
     /// unsafe { std::slice::from_raw_parts(NonNull::dangling().as_ptr(), 0); }
     /// ```