]> git.lizzy.rs Git - rust.git/commit
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)
commitab085d9aea5625ace47165e7178420ca37c91963
treef9e0977df29057706193f26cf12e3f81db34a466
parentbe5d17feb20534d503c49722beecf5501d5d9c3a
parentbe14ea8c3755a49efea5188cc48345d3e98b7514
Auto merge of #4214 - d-dorazio:4204-fix-float-cmp-neq, r=flip1995

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