From c94ca1c625ba195964ead7e1eac640563526c20b Mon Sep 17 00:00:00 2001 From: Paul <34397452+PaulTheNeko@users.noreply.github.com> Date: Mon, 18 Jul 2022 16:24:30 +0200 Subject: [PATCH] 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. --- clippy_lints/src/std_instead_of_core.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/std_instead_of_core.rs b/clippy_lints/src/std_instead_of_core.rs index 56f2a7bae15..560a3164563 100644 --- a/clippy_lints/src/std_instead_of_core.rs +++ b/clippy_lints/src/std_instead_of_core.rs @@ -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