Skip to content

Commit

Permalink
Fix whitespace and missing parentheses.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcrail committed Aug 31, 2014
1 parent 27e8d5b commit c5f66d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libnum/rational.rs
Expand Up @@ -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())
Expand Down Expand Up @@ -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)
Expand Down

9 comments on commit c5f66d8

@bors
Copy link
Contributor

@bors bors commented on c5f66d8 Sep 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from pcwalton
at jbcrail@c5f66d8

@bors
Copy link
Contributor

@bors bors commented on c5f66d8 Sep 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging jbcrail/rust/fix-rational-docs = c5f66d8 into auto

@bors
Copy link
Contributor

@bors bors commented on c5f66d8 Sep 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jbcrail/rust/fix-rational-docs = c5f66d8 merged ok, testing candidate = e6973ccc

@bors
Copy link
Contributor

@bors bors commented on c5f66d8 Sep 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from pcwalton
at jbcrail@c5f66d8

@bors
Copy link
Contributor

@bors bors commented on c5f66d8 Sep 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging jbcrail/rust/fix-rational-docs = c5f66d8 into auto

@bors
Copy link
Contributor

@bors bors commented on c5f66d8 Sep 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jbcrail/rust/fix-rational-docs = c5f66d8 merged ok, testing candidate = 074d3da

@bors
Copy link
Contributor

@bors bors commented on c5f66d8 Sep 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 074d3da

Please sign in to comment.