diff options
| author | bors <bors@rust-lang.org> | 2014-09-05 15:46:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-09-05 15:46:29 +0000 |
| commit | 074d3da7b09883658cd0d52d53ebac7ee74e9e28 (patch) | |
| tree | 5d6b8468238197d9553dda63e9bb96938d2990f1 /src/libnum | |
| parent | 67b97ab6d2b7de9b69fd97dc171fcf8feec932ff (diff) | |
| parent | c5f66d8135f94f2014f7b8d4c5258d66fff8cd3c (diff) | |
| download | rust-074d3da7b09883658cd0d52d53ebac7ee74e9e28.tar.gz rust-074d3da7b09883658cd0d52d53ebac7ee74e9e28.zip | |
auto merge of #16775 : jbcrail/rust/fix-rational-docs, r=pcwalton
Minor corrections to Rational documentation.
Diffstat (limited to 'src/libnum')
| -rw-r--r-- | src/libnum/rational.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnum/rational.rs b/src/libnum/rational.rs index 56f3f532533..0e334544b4b 100644 --- a/src/libnum/rational.rs +++ b/src/libnum/rational.rs @@ -154,7 +154,7 @@ impl<T: Clone + Integer + PartialOrd> Ratio::from_integer(self.numer / self.denom) } - ///Returns the fractional part of a number. + /// Returns the fractional part of a number. #[inline] pub fn fract(&self) -> Ratio<T> { Ratio::new_raw(self.numer % self.denom, self.denom.clone()) @@ -243,7 +243,7 @@ macro_rules! arith_impl { } } -// a/b + c/d = (a*d + b*c)/(b*d +// a/b + c/d = (a*d + b*c)/(b*d) arith_impl!(impl Add, add) // a/b - c/d = (a*d - b*c)/(b*d) |
