We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a04dbb0 commit e42a380Copy full SHA for e42a380
clippy_lints/src/operators/mod.rs
@@ -636,7 +636,7 @@ declare_clippy_lint! {
636
/// values (apart from zero), except in functions called `*eq*` (which probably
637
/// implement equality for a type involving floats).
638
///
639
- /// ### Why is this bad?
+ /// ### Why restrict this?
640
/// Floating point calculations are usually imprecise, so asking if two values are *exactly*
641
/// equal is asking for trouble because arriving at the same logical result via different
642
/// routes (e.g. calculation versus constant) may yield different values.
0 commit comments