]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #4214 - d-dorazio:4204-fix-float-cmp-neq, r=flip1995
authorbors <bors@rust-lang.org>
Mon, 17 Jun 2019 15:18:31 +0000 (15:18 +0000)
committerbors <bors@rust-lang.org>
Mon, 17 Jun 2019 15:18:31 +0000 (15:18 +0000)
fix suggestion for floating point inequality

It should be of the form `(a - b).abs() > error` whereas it was `(a - b).abs() < error` that is instead what should be used for equality.

fixes #4204.

changelog: fix suggestion for floating point inequality


Trivial merge