]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #66837 - ohadravid:epsilon-doc, r=dtolnay
authorRalf Jung <post@ralfj.de>
Fri, 29 Nov 2019 21:57:41 +0000 (22:57 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Nov 2019 21:57:41 +0000 (22:57 +0100)
commit395937823c65d0dc6469e5df864b1e1b0f5a2b3f
tree331df5488b167bd8b5cff854b12936b6a827a535
parent5c9081181480e1df9fc41bfb488b4936d1f1e4d8
parent85a468b8cfc8957c337b426b618dd84984967c3b
Rollup merge of #66837 - ohadravid:epsilon-doc, r=dtolnay

Clarify `{f32,f64}::EPSILON` docs

The doc for `EPSILON` says:
>  This is the difference between `1.0` and the next **largest** representable number.

Which is a bit unclear.

[Wikipedia](https://en.wikipedia.org/wiki/Machine_epsilon) says
> Machine epsilon is defined as the difference between 1 and the next **larger** floating point number

So this PR update the docs to match the Wikipedia version.

The original PR also has this in a [comment](https://github.com/rust-lang/rust/pull/50919#discussion_r192600209).