From e42a380afcd228fad0696d4cb919173b51083212 Mon Sep 17 00:00:00 2001 From: Sander Saares Date: Wed, 10 Jul 2024 08:10:35 +0300 Subject: [PATCH] Revert accidental "Why restrict this?" change --- clippy_lints/src/operators/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/operators/mod.rs b/clippy_lints/src/operators/mod.rs index bf7a581c84863..59834781a58a5 100644 --- a/clippy_lints/src/operators/mod.rs +++ b/clippy_lints/src/operators/mod.rs @@ -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.