mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 07:35:39 +00:00
Cover edge cases for {f32, f64}.hypot() docs
Fixes #88944
The Euclidean distance is a more general way to express what these functions do, and covers the edge cases of zero and negative inputs.
Does not cover the case of non-normal input values (as the [POSIX docs](https://pubs.opengroup.org/onlinepubs/9699919799.2008edition/) do), but the docs for the rest of the functions in these modules do not address this, I assumed it was not desired.