diff options
| author | Cristi Cobzarenco <cristi.cobzarenco@gmail.com> | 2015-10-07 23:11:25 +0100 |
|---|---|---|
| committer | Cristi Cobzarenco <cristi.cobzarenco@gmail.com> | 2015-10-08 19:49:31 +0100 |
| commit | 4b308b44e1d8204702f6912dda4dfc404aa2a87d (patch) | |
| tree | 81656e777de1d1de896739e318645bca7317e391 /src/libcore/num | |
| parent | 95285c496f58a326eace11bddb25a7ce7adcfe44 (diff) | |
| download | rust-4b308b44e1d8204702f6912dda4dfc404aa2a87d.tar.gz rust-4b308b44e1d8204702f6912dda4dfc404aa2a87d.zip | |
typos: fix a grabbag of typos all over the place
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/bignum.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/flt2dec/mod.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/flt2dec/strategy/grisu.rs | 2 | ||||
| -rw-r--r-- | src/libcore/num/mod.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/num/bignum.rs b/src/libcore/num/bignum.rs index baeca6b8b49..18b34e24fcb 100644 --- a/src/libcore/num/bignum.rs +++ b/src/libcore/num/bignum.rs @@ -110,7 +110,7 @@ macro_rules! define_bignum { ($name:ident: type=$ty:ty, n=$n:expr) => ( /// Stack-allocated arbitrary-precision (up to certain limit) integer. /// - /// This is backed by an fixed-size array of given type ("digit"). + /// This is backed by a fixed-size array of given type ("digit"). /// While the array is not very large (normally some hundred bytes), /// copying it recklessly may result in the performance hit. /// Thus this is intentionally not `Copy`. diff --git a/src/libcore/num/flt2dec/mod.rs b/src/libcore/num/flt2dec/mod.rs index 7f7c61938cb..57d4bccbfa6 100644 --- a/src/libcore/num/flt2dec/mod.rs +++ b/src/libcore/num/flt2dec/mod.rs @@ -461,7 +461,7 @@ pub fn to_shortest_str<'a, T, F>(mut format_shortest: F, v: T, /// You probably would want `strategy::grisu::format_shortest` for this. /// /// The `dec_bounds` is a tuple `(lo, hi)` such that the number is formatted -/// as decimal only when `10^lo <= V < 10^hi`. Note that this is the *apparant* `V` +/// as decimal only when `10^lo <= V < 10^hi`. Note that this is the *apparent* `V` /// instead of the actual `v`! Thus any printed exponent in the exponential form /// cannot be in this range, avoiding any confusion. /// diff --git a/src/libcore/num/flt2dec/strategy/grisu.rs b/src/libcore/num/flt2dec/strategy/grisu.rs index 5b4b2e46478..13e01d9a7f7 100644 --- a/src/libcore/num/flt2dec/strategy/grisu.rs +++ b/src/libcore/num/flt2dec/strategy/grisu.rs @@ -488,7 +488,7 @@ pub fn format_exact_opt(d: &Decoded, buf: &mut [u8], limit: i16) // but scaling `max_ten_kappa << e` by 10 can result in overflow. // thus we are being sloppy here and widen the error range by a factor of 10. // this will increase the false negative rate, but only very, *very* slightly; - // it can only matter noticably when the mantissa is bigger than 60 bits. + // it can only matter noticeably when the mantissa is bigger than 60 bits. return possibly_round(buf, 0, exp, limit, v.f / 10, (max_ten_kappa as u64) << e, err << e); } else if ((exp as i32 - limit as i32) as usize) < buf.len() { (exp - limit) as usize diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index e942e8b6923..edff03025c5 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -1383,7 +1383,7 @@ fn from_str_radix<T: FromStrRadixHelper>(src: &str, radix: u32) // all valid digits are ascii, so we will just iterate over the utf8 bytes // and cast them to chars. .to_digit() will safely return None for anything - // other than a valid ascii digit for a the given radix, including the first-byte + // other than a valid ascii digit for the given radix, including the first-byte // of multi-byte sequences let src = src.as_bytes(); |
