Skip to content

Commit e42a380

Browse files
committed
Revert accidental "Why restrict this?" change
1 parent a04dbb0 commit e42a380

File tree

1 file changed

+1
-1
lines changed
  • clippy_lints/src/operators

1 file changed

+1
-1
lines changed

clippy_lints/src/operators/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ declare_clippy_lint! {
636636
/// values (apart from zero), except in functions called `*eq*` (which probably
637637
/// implement equality for a type involving floats).
638638
///
639-
/// ### Why is this bad?
639+
/// ### Why restrict this?
640640
/// Floating point calculations are usually imprecise, so asking if two values are *exactly*
641641
/// equal is asking for trouble because arriving at the same logical result via different
642642
/// routes (e.g. calculation versus constant) may yield different values.

0 commit comments

Comments
 (0)