Skip to content

Commit 535262c

Browse files
committed
Auto merge of #7852 - surechen:fix_typo, r=xFrednet
Fix typo for invalid_null_ptr_usage and missing_inline_in_public_items. Fix typo for invalid_null_ptr_usage and missing_inline_in_public_items. changelog: none
2 parents 300b821 + abb7ae9 commit 535262c

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)