We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 67b97ab + c5f66d8 commit 074d3daCopy full SHA for 074d3da
src/libnum/rational.rs
@@ -154,7 +154,7 @@ impl<T: Clone + Integer + PartialOrd>
154
Ratio::from_integer(self.numer / self.denom)
155
}
156
157
- ///Returns the fractional part of a number.
+ /// Returns the fractional part of a number.
158
#[inline]
159
pub fn fract(&self) -> Ratio<T> {
160
Ratio::new_raw(self.numer % self.denom, self.denom.clone())
@@ -243,7 +243,7 @@ macro_rules! arith_impl {
243
244
245
246
-// a/b + c/d = (a*d + b*c)/(b*d
+// a/b + c/d = (a*d + b*c)/(b*d)
247
arith_impl!(impl Add, add)
248
249
// a/b - c/d = (a*d - b*c)/(b*d)
0 commit comments