diff options
| author | bors <bors@rust-lang.org> | 2013-04-22 06:57:54 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-04-22 06:57:54 -0700 |
| commit | 0de3e7a23c0cd677a3f369ea1b65cd71f41dcda2 (patch) | |
| tree | 6cbffcf0760bd85cb5d0a52abe8ffaec50dcbb84 /src | |
| parent | 3830040a89297dd55f920ec26ab97fb2e33c7a00 (diff) | |
| parent | e6c4471ed8c54a035f1cc2096d04cc44fd4cd14b (diff) | |
| download | rust-0de3e7a23c0cd677a3f369ea1b65cd71f41dcda2.tar.gz rust-0de3e7a23c0cd677a3f369ea1b65cd71f41dcda2.zip | |
auto merge of #5994 : huonw/rust/rational-fail-message, r=thestinger
A pedantic correction; the quotient is the result of `a/b`, not `b`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/num/rational.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/num/rational.rs b/src/libstd/num/rational.rs index 2098429833d..ee6879e31d9 100644 --- a/src/libstd/num/rational.rs +++ b/src/libstd/num/rational.rs @@ -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(); |
