diff options
| author | Joseph Crail <jbcrail@gmail.com> | 2014-06-08 13:22:49 -0400 |
|---|---|---|
| committer | Joseph Crail <jbcrail@gmail.com> | 2014-06-08 13:39:42 -0400 |
| commit | 45e56eccbed3161dd9de547c6c2dcf618114a484 (patch) | |
| tree | 4eb63b08a1f5beebc194419162b0f5c5dce1c0e5 /src/libstd/num | |
| parent | 17ba0cf4289d6da632aab4cf242ad74dea94fe37 (diff) | |
| download | rust-45e56eccbed3161dd9de547c6c2dcf618114a484.tar.gz rust-45e56eccbed3161dd9de547c6c2dcf618114a484.zip | |
Fix spelling errors in comments.
Diffstat (limited to 'src/libstd/num')
| -rw-r--r-- | src/libstd/num/strconv.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/num/strconv.rs b/src/libstd/num/strconv.rs index 133a8db90fa..48962ca59d8 100644 --- a/src/libstd/num/strconv.rs +++ b/src/libstd/num/strconv.rs @@ -636,7 +636,7 @@ pub fn from_str_bytes_common<T:NumCast+Zero+One+PartialEq+PartialOrd+Div<T,T>+ if accum_positive && accum <= last_accum { return NumStrConv::inf(); } if !accum_positive && accum >= last_accum { return NumStrConv::neg_inf(); } - // Detect overflow by reversing the shift-and-add proccess + // Detect overflow by reversing the shift-and-add process if accum_positive && (last_accum != ((accum - cast(digit as int).unwrap())/radix_gen.clone())) { return NumStrConv::inf(); |
