Skip to content

Commit e6c4471

Browse files
committed
libstd: denominator isn't quotient
1 parent 3830040 commit e6c4471

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)