Skip to content

Commit edeb0fc

Browse files
committed
Fix syntax errors in example code
1 parent 86d348d commit edeb0fc

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)