mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
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.
This commit is contained in:
parent
cce617165d
commit
c94ca1c625
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ declare_clippy_lint! {
|
|||
/// ### Why is this bad?
|
||||
///
|
||||
/// Crates which have `no_std` compatibility and may optionally require alloc may wish to ensure types are
|
||||
/// imported from alloc to ensure disabling `alloc` does not cause the crate to fail to compile. This lint
|
||||
/// imported from core to ensure disabling `alloc` does not cause the crate to fail to compile. This lint
|
||||
/// is also useful for crates migrating to become `no_std` compatible.
|
||||
///
|
||||
/// ### Example
|
||||
|
|
Loading…
Reference in a new issue