diff options
| author | Ralf Jung <post@ralfj.de> | 2019-11-29 22:57:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-29 22:57:41 +0100 |
| commit | 395937823c65d0dc6469e5df864b1e1b0f5a2b3f (patch) | |
| tree | 331df5488b167bd8b5cff854b12936b6a827a535 /src/liballoc/alloc | |
| parent | 5c9081181480e1df9fc41bfb488b4936d1f1e4d8 (diff) | |
| parent | 85a468b8cfc8957c337b426b618dd84984967c3b (diff) | |
| download | rust-395937823c65d0dc6469e5df864b1e1b0f5a2b3f.tar.gz rust-395937823c65d0dc6469e5df864b1e1b0f5a2b3f.zip | |
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).
Diffstat (limited to 'src/liballoc/alloc')
0 files changed, 0 insertions, 0 deletions
