Skip to content

Commit 76b37b2

Browse files
Fix typos
1 parent 5038877 commit 76b37b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_lint/src/function_cast_as_integer.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use crate::lints::{FunctionCastsAsIntegerDiag, FunctionCastsAsIntegerSugg};
77
use crate::{LateContext, LateLintPass};
88

99
declare_lint! {
10-
/// The `function_casts_as_integer` lint detects cases where a function item is casted
11-
/// into an integer.
10+
/// The `function_casts_as_integer` lint detects cases where a function item is cast
11+
/// to an integer.
1212
///
1313
/// ### Example
1414
///
@@ -21,8 +21,8 @@ declare_lint! {
2121
///
2222
/// ### Explanation
2323
///
24-
/// When casting a function item into an integer, it's implicitly creating a
25-
/// function pointer that will in turn be casted into an integer. By making
24+
/// When casting a function item to an integer, it implicitly creates a
25+
/// function pointer that will in turn be cast to an integer. By making
2626
/// it explicit, it improves readability of the code and prevents bugs.
2727
pub FUNCTION_CASTS_AS_INTEGER,
2828
Warn,

0 commit comments

Comments
 (0)