Skip to content

Commit 074d3da

Browse files
committed
auto merge of #16775 : jbcrail/rust/fix-rational-docs, r=pcwalton
Minor corrections to Rational documentation.
2 parents 67b97ab + c5f66d8 commit 074d3da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libnum/rational.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl<T: Clone + Integer + PartialOrd>
154154
Ratio::from_integer(self.numer / self.denom)
155155
}
156156

157-
///Returns the fractional part of a number.
157+
/// Returns the fractional part of a number.
158158
#[inline]
159159
pub fn fract(&self) -> Ratio<T> {
160160
Ratio::new_raw(self.numer % self.denom, self.denom.clone())
@@ -243,7 +243,7 @@ macro_rules! arith_impl {
243243
}
244244
}
245245

246-
// a/b + c/d = (a*d + b*c)/(b*d
246+
// a/b + c/d = (a*d + b*c)/(b*d)
247247
arith_impl!(impl Add, add)
248248

249249
// a/b - c/d = (a*d - b*c)/(b*d)

0 commit comments

Comments
 (0)