Address nits and tidy errors.

This commit is contained in:
Fabian Zaiser 2018-03-28 01:41:40 +02:00
parent 9255bbd035
commit ece87c3f4e
3 changed files with 19 additions and 17 deletions

View file

@ -331,9 +331,9 @@ impl f32 {
/// Calculates Euclidean division, the matching method for `mod_euc`.
///
/// This computes the integer n such that
/// This computes the integer `n` such that
/// `self = n * rhs + self.mod_euc(rhs)`.
/// In other words, the result is `self / rhs` rounded to the integer n
/// In other words, the result is `self / rhs` rounded to the integer `n`
/// such that `self >= n * rhs`.
///
/// ```

View file

@ -317,9 +317,9 @@ impl f64 {
/// Calculates Euclidean division, the matching method for `mod_euc`.
///
/// This computes the integer n such that
/// This computes the integer `n` such that
/// `self = n * rhs + self.mod_euc(rhs)`.
/// In other words, the result is `self / rhs` rounded to the integer n
/// In other words, the result is `self / rhs` rounded to the integer `n`
/// such that `self >= n * rhs`.
///
/// ```