diff options
| author | Virgile Andreani <virgile.andreani@anbuco.fr> | 2014-01-30 19:29:35 +0100 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-01-31 21:43:07 -0800 |
| commit | b9a026afba1513ab7847dcb19446463895b6cd3e (patch) | |
| tree | 6a9b43ab5dae8dde8ef45ddc093d33ec88f28efd /src/libstd/num | |
| parent | 2c8b1125804b5666d0cc0139c205a6aa0be95eaa (diff) | |
| download | rust-b9a026afba1513ab7847dcb19446463895b6cd3e.tar.gz rust-b9a026afba1513ab7847dcb19446463895b6cd3e.zip | |
Fix minor doc typos
Diffstat (limited to 'src/libstd/num')
| -rw-r--r-- | src/libstd/num/f32.rs | 8 | ||||
| -rw-r--r-- | src/libstd/num/f64.rs | 8 | ||||
| -rw-r--r-- | src/libstd/num/strconv.rs | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/libstd/num/f32.rs b/src/libstd/num/f32.rs index 8acfd197618..a4b6aca86f7 100644 --- a/src/libstd/num/f32.rs +++ b/src/libstd/num/f32.rs @@ -1,4 +1,4 @@ -// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -812,7 +812,7 @@ impl num::ToStrRadix for f32 { } /// Convert a string in base 16 to a float. -/// Accepts a optional binary exponent. +/// Accepts an optional binary exponent. /// /// This function accepts strings such as /// @@ -844,7 +844,7 @@ pub fn from_str_hex(num: &str) -> Option<f32> { impl FromStr for f32 { /// Convert a string in base 10 to a float. - /// Accepts a optional decimal exponent. + /// Accepts an optional decimal exponent. /// /// This function accepts strings such as /// @@ -876,7 +876,7 @@ impl FromStr for f32 { } impl num::FromStrRadix for f32 { - /// Convert a string in an given base to a float. + /// Convert a string in a given base to a float. /// /// Due to possible conflicts, this function does **not** accept /// the special values `inf`, `-inf`, `+inf` and `NaN`, **nor** diff --git a/src/libstd/num/f64.rs b/src/libstd/num/f64.rs index 6bb7bf6c563..d51f6b602d7 100644 --- a/src/libstd/num/f64.rs +++ b/src/libstd/num/f64.rs @@ -1,4 +1,4 @@ -// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -814,7 +814,7 @@ impl num::ToStrRadix for f64 { } /// Convert a string in base 16 to a float. -/// Accepts a optional binary exponent. +/// Accepts an optional binary exponent. /// /// This function accepts strings such as /// @@ -846,7 +846,7 @@ pub fn from_str_hex(num: &str) -> Option<f64> { impl FromStr for f64 { /// Convert a string in base 10 to a float. - /// Accepts a optional decimal exponent. + /// Accepts an optional decimal exponent. /// /// This function accepts strings such as /// @@ -878,7 +878,7 @@ impl FromStr for f64 { } impl num::FromStrRadix for f64 { - /// Convert a string in an given base to a float. + /// Convert a string in a given base to a float. /// /// Due to possible conflicts, this function does **not** accept /// the special values `inf`, `-inf`, `+inf` and `NaN`, **nor** diff --git a/src/libstd/num/strconv.rs b/src/libstd/num/strconv.rs index 67f6d006b57..1ecabff8758 100644 --- a/src/libstd/num/strconv.rs +++ b/src/libstd/num/strconv.rs @@ -1,4 +1,4 @@ -// Copyright 2013 The Rust Project Developers. See the COPYRIGHT +// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -517,7 +517,7 @@ static DIGIT_E_RADIX: uint = ('e' as uint) - ('a' as uint) + 11u; * - `ExpBin`: Accepts numbers with a binary exponent like `42P-8` or * `FFp128`. The exponent string itself is always base 10. * Can conflict with `radix`, see Failure. - * - `empty_zero` - Whether to accept a empty `buf` as a 0 or not. + * - `empty_zero` - Whether to accept an empty `buf` as a 0 or not. * - `ignore_underscores` - Whether all underscores within the string should * be ignored. * |
