From 5aa8bc11cda874795aeefc4fbeda2fafc5830158 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Thu, 30 Jan 2025 21:26:40 +0100 Subject: [PATCH] `sliced_string_as_bytes`: fix typo in lint description --- clippy_lints/src/methods/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 6dbfbc2ca3b4..dd2ab7c10a5d 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -4367,7 +4367,7 @@ declare_clippy_lint! { declare_clippy_lint! { /// ### What it does - /// Checks for string slices immediantly followed by `as_bytes`. + /// Checks for string slices immediately followed by `as_bytes`. /// /// ### Why is this bad? /// It involves doing an unnecessary UTF-8 alignment check which is less efficient, and can cause a panic.