Skip to content

Commit

Permalink
auto merge of #5994 : huonw/rust/rational-fail-message, r=thestinger
Browse files Browse the repository at this point in the history
A pedantic correction; the quotient is the result of `a/b`, not `b`.
  • Loading branch information
bors committed Apr 22, 2013
2 parents 3830040 + e6c4471 commit 0de3e7a
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

0 comments on commit 0de3e7a

Please sign in to comment.