Skip to content

Commit c94ca1c

Browse files
Fix typo in alloc_instead_of_core
The description previously claimed it ensures items are imported from alloc, to ensure a crate won't require alloc, which can't be true.
1 parent cce6171 commit c94ca1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/std_instead_of_core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ declare_clippy_lint! {
6363
/// ### Why is this bad?
6464
///
6565
/// Crates which have `no_std` compatibility and may optionally require alloc may wish to ensure types are
66-
/// imported from alloc to ensure disabling `alloc` does not cause the crate to fail to compile. This lint
66+
/// imported from core to ensure disabling `alloc` does not cause the crate to fail to compile. This lint
6767
/// is also useful for crates migrating to become `no_std` compatible.
6868
///
6969
/// ### Example

0 commit comments

Comments
 (0)