Skip to content

Commit abb7ae9

Browse files
committed
Fix typo for INVALID_NULL_PTR_USAGE and MISSING_INLINE_IN_PUBLIC_ITEMS.
1 parent 300b821 commit abb7ae9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clippy_lints/src/missing_inline.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rustc_span::sym;
88

99
declare_clippy_lint! {
1010
/// ### What it does
11-
/// it lints if an exported function, method, trait method with default impl,
11+
/// It lints if an exported function, method, trait method with default impl,
1212
/// or trait method impl is not `#[inline]`.
1313
///
1414
/// ### Why is this bad?

clippy_lints/src/ptr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ declare_clippy_lint! {
139139
/// unsafe { std::slice::from_raw_parts(ptr::null(), 0); }
140140
/// ```
141141
///
142+
/// ```ignore
142143
/// // Good
143144
/// unsafe { std::slice::from_raw_parts(NonNull::dangling().as_ptr(), 0); }
144145
/// ```

0 commit comments

Comments
 (0)