Skip to content

Commit a94abae

Browse files
Clarify docs of CONFUSING_METHOD_TO_NUMERIC_CAST
1 parent 06fa045 commit a94abae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/casts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ declare_clippy_lint! {
789789

790790
declare_clippy_lint! {
791791
/// ### What it does
792-
/// Checks for casts of a primitive method pointer to any integer type.
792+
/// Checks for casts of a primitive method pointer like `max`/`min` to any integer type.
793793
///
794794
/// ### Why restrict this?
795795
/// Casting a function pointer to an integer can have surprising results and can occur

0 commit comments

Comments
 (0)