Skip to content

Commit

Permalink
libstd: denominator isn't quotient
Browse files Browse the repository at this point in the history
  • Loading branch information
huonw committed Apr 22, 2013
1 parent 3830040 commit e6c4471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/num/rational.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl<T: Copy + Num + Ord>
#[inline(always)]
pub fn new(numer: T, denom: T) -> Ratio<T> {
if denom == Zero::zero() {
fail!(~"quotient of 0");
fail!(~"denominator == 0");
}
let mut ret = Ratio::new_raw(numer, denom);
ret.reduce();
Expand Down

5 comments on commit e6c4471

@bors
Copy link
Contributor

@bors bors commented on e6c4471 Apr 22, 2013

Choose a reason for hiding this comment

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

saw approval from thestinger
at huonw@e6c4471

@bors
Copy link
Contributor

@bors bors commented on e6c4471 Apr 22, 2013

Choose a reason for hiding this comment

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

merging huonw/rust/rational-fail-message = e6c4471 into auto

@bors
Copy link
Contributor

@bors bors commented on e6c4471 Apr 22, 2013

Choose a reason for hiding this comment

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

huonw/rust/rational-fail-message = e6c4471 merged ok, testing candidate = 0de3e7a

@bors
Copy link
Contributor

@bors bors commented on e6c4471 Apr 22, 2013

Choose a reason for hiding this comment

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

@bors
Copy link
Contributor

@bors bors commented on e6c4471 Apr 22, 2013

Choose a reason for hiding this comment

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

fast-forwarding incoming to auto = 0de3e7a

Please sign in to comment.