diff options
Diffstat (limited to 'src/libstd/num')
| -rw-r--r-- | src/libstd/num/strconv.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/num/strconv.rs b/src/libstd/num/strconv.rs index 06d2f0ef028..fff31b332e1 100644 --- a/src/libstd/num/strconv.rs +++ b/src/libstd/num/strconv.rs @@ -88,8 +88,8 @@ pub enum SignFormat { * It returns a tuple because there can be ambiguity between a special value * and a number representation at higher bases. * - * # Failure - * - Fails if `radix` < 2 or `radix` > 36. + * # Panics + * - Panics if `radix` < 2 or `radix` > 36. */ fn int_to_str_bytes_common<T: Int>(num: T, radix: uint, sign: SignFormat, f: |u8|) { assert!(2 <= radix && radix <= 36); @@ -172,11 +172,11 @@ fn int_to_str_bytes_common<T: Int>(num: T, radix: uint, sign: SignFormat, f: |u8 * It returns a tuple because there can be ambiguity between a special value * and a number representation at higher bases. * - * # Failure - * - Fails if `radix` < 2 or `radix` > 36. - * - Fails if `radix` > 14 and `exp_format` is `ExpDec` due to conflict + * # Panics + * - Panics if `radix` < 2 or `radix` > 36. + * - Panics if `radix` > 14 and `exp_format` is `ExpDec` due to conflict * between digit and exponent sign `'e'`. - * - Fails if `radix` > 25 and `exp_format` is `ExpBin` due to conflict + * - Panics if `radix` > 25 and `exp_format` is `ExpBin` due to conflict * between digit and exponent sign `'p'`. */ pub fn float_to_str_bytes_common<T: Float>( |
