mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-10 23:54:58 +00:00
7f82ddb875
Fix inequality in docs for div_euclid This commit fixes the statement of the inequality that the Euclidean remainder satisfies. (The remainder is guaranteed to be less than abs(rhs), not rhs.) It also rewords the documentation to make it a little easier to read. (You might wonder why I've written `abs(rhs)` instead of `rhs.abs()`. Two reasons: first, the `rem_euclid` docs use `abs(rhs)` instead of `rhs.abs()`, and second, the absolute value here is the mathematical absolute value, not the the `.abs()` operation which may overflow.) |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |