Skip to content

Commit 0de3e7a

Browse files
committed
auto merge of #5994 : huonw/rust/rational-fail-message, r=thestinger
A pedantic correction; the quotient is the result of `a/b`, not `b`.
2 parents 3830040 + e6c4471 commit 0de3e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/num/rational.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl<T: Copy + Num + Ord>
5151
#[inline(always)]
5252
pub fn new(numer: T, denom: T) -> Ratio<T> {
5353
if denom == Zero::zero() {
54-
fail!(~"quotient of 0");
54+
fail!(~"denominator == 0");
5555
}
5656
let mut ret = Ratio::new_raw(numer, denom);
5757
ret.reduce();

0 commit comments

Comments
 (0)