From f22600e9a0790a763a233a061977fb23e1d8bf39 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 30 Oct 2025 11:53:35 +0100 Subject: [PATCH] Fix typos --- compiler/rustc_lint/src/function_cast_as_integer.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/rustc_lint/src/function_cast_as_integer.rs b/compiler/rustc_lint/src/function_cast_as_integer.rs index 1a51132ffcee..279e8b8c3ba4 100644 --- a/compiler/rustc_lint/src/function_cast_as_integer.rs +++ b/compiler/rustc_lint/src/function_cast_as_integer.rs @@ -7,8 +7,8 @@ use crate::lints::{FunctionCastsAsIntegerDiag, FunctionCastsAsIntegerSugg}; use crate::{LateContext, LateLintPass}; declare_lint! { - /// The `function_casts_as_integer` lint detects cases where a function item is casted - /// into an integer. + /// The `function_casts_as_integer` lint detects cases where a function item is cast + /// to an integer. /// /// ### Example /// @@ -21,8 +21,8 @@ declare_lint! { /// /// ### Explanation /// - /// When casting a function item into an integer, it's implicitly creating a - /// function pointer that will in turn be casted into an integer. By making + /// When casting a function item to an integer, it implicitly creates a + /// function pointer that will in turn be cast to an integer. By making /// it explicit, it improves readability of the code and prevents bugs. pub FUNCTION_CASTS_AS_INTEGER, Warn,