Skip to content

Commit

Permalink
Fix typo for INVALID_NULL_PTR_USAGE and MISSING_INLINE_IN_PUBLIC_ITEMS.
Browse files Browse the repository at this point in the history
  • Loading branch information
surechen committed Oct 21, 2021
1 parent 300b821 commit abb7ae9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/missing_inline.rs
Expand Up @@ -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?
Expand Down
1 change: 1 addition & 0 deletions clippy_lints/src/ptr.rs
Expand Up @@ -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); }
/// ```
Expand Down

0 comments on commit abb7ae9

Please sign in to comment.