Skip to content

Commit 51a1cf0

Browse files
committed
Auto merge of #13089 - flba-eb:fix_example, r=y21
Fix syntax errors in example code (clippy::cast_nan_to_int) Fix two small syntax errors to make the examples compile. changelog: none
2 parents 86d348d + edeb0fc commit 51a1cf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/casts/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,11 +658,11 @@ declare_clippy_lint! {
658658
///
659659
/// ### Example
660660
/// ```rust,ignore
661-
/// let _: (0.0_f32 / 0.0) as u64;
661+
/// let _ = (0.0_f32 / 0.0) as u64;
662662
/// ```
663663
/// Use instead:
664664
/// ```rust,ignore
665-
/// let _: = 0_u64;
665+
/// let _ = 0_u64;
666666
/// ```
667667
#[clippy::version = "1.66.0"]
668668
pub CAST_NAN_TO_INT,

0 commit comments

Comments
 (0)