diff options
| author | Barosl Lee <vcs@barosl.com> | 2014-11-12 03:36:09 +0900 |
|---|---|---|
| committer | Barosl Lee <vcs@barosl.com> | 2014-11-12 03:36:09 +0900 |
| commit | 8bf77fa786aae4993fa923f0826529bfb9ce1166 (patch) | |
| tree | a7ac9d644b4e116aa78ac337c749f73ebdcdadf3 /src/libstd/num | |
| parent | 5d29209bda553e4d23a8b499d2ceb8db5c4f8be5 (diff) | |
| download | rust-8bf77fa786aae4993fa923f0826529bfb9ce1166.tar.gz rust-8bf77fa786aae4993fa923f0826529bfb9ce1166.zip | |
Fix remaining documentation to reflect fail!() -> panic!()
Throughout the docs, "failure" was replaced with "panics" if it means a task panic. Otherwise, it remained as is, or changed to "errors" to clearly differentiate it from a task panic.
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 088ea89818e..07f1037607e 100644 --- a/src/libstd/num/strconv.rs +++ b/src/libstd/num/strconv.rs @@ -89,8 +89,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); @@ -173,11 +173,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>( |
