Skip to content

Commit

Permalink
fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ubsan committed Dec 20, 2018
1 parent 66bb34c commit 455bc95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libcore/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,7 @@ $EndFeature, "
concat!("Calculates the quotient of Euclidean division of `self` by `rhs`.
This computes the integer `n` such that `self = n * rhs + self.rem_euclid(rhs)`,
with the `0 <= self.rem_euclid(rhs) < rhs`.
with `0 <= self.rem_euclid(rhs) < rhs`.
In other words, the result is `self / rhs` rounded to the integer `n`
such that `self >= n * rhs`.
Expand Down Expand Up @@ -1781,7 +1781,9 @@ assert_eq!((-a).div_euclid(-b), 2); // -7 >= -4 * 2
doc_comment! {
concat!("Calculates the least nonnegative remainder of `self (mod rhs)`.
This is done as if by the Euclidean division algorithm.
This is done as if by the Euclidean division algorithm -- given
`r = self.rem_euclid(rhs)`, `self = rhs * self.div_euclid(rhs) + r`, and
`0 <= r < abs(rhs)`.
# Panics
Expand Down

0 comments on commit 455bc95

Please sign in to comment.