Skip to content

Commit

Permalink
Revert accidental "Why restrict this?" change
Browse files Browse the repository at this point in the history
  • Loading branch information
sandersaares committed Jul 10, 2024
1 parent a04dbb0 commit e42a380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/operators/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ declare_clippy_lint! {
/// values (apart from zero), except in functions called `*eq*` (which probably
/// implement equality for a type involving floats).
///
/// ### Why is this bad?
/// ### Why restrict this?
/// Floating point calculations are usually imprecise, so asking if two values are *exactly*
/// equal is asking for trouble because arriving at the same logical result via different
/// routes (e.g. calculation versus constant) may yield different values.
Expand Down

0 comments on commit e42a380

Please sign in to comment.