We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3830040 + e6c4471 commit 0de3e7aCopy full SHA for 0de3e7a
src/libstd/num/rational.rs
@@ -51,7 +51,7 @@ impl<T: Copy + Num + Ord>
51
#[inline(always)]
52
pub fn new(numer: T, denom: T) -> Ratio<T> {
53
if denom == Zero::zero() {
54
- fail!(~"quotient of 0");
+ fail!(~"denominator == 0");
55
}
56
let mut ret = Ratio::new_raw(numer, denom);
57
ret.reduce();
0 commit comments