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 | |
| parent | 17ba0cf4289d6da632aab4cf242ad74dea94fe37 (diff) | |
| download | rust-45e56eccbed3161dd9de547c6c2dcf618114a484.tar.gz rust-45e56eccbed3161dd9de547c6c2dcf618114a484.zip | |
Fix spelling errors in comments.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/io/process.rs | 2 | ||||
| -rw-r--r-- | src/libstd/io/stdio.rs | 2 | ||||
| -rw-r--r-- | src/libstd/io/timer.rs | 6 | ||||
| -rw-r--r-- | src/libstd/num/strconv.rs | 2 | ||||
| -rw-r--r-- | src/libstd/os.rs | 2 | ||||
| -rw-r--r-- | src/libstd/path/windows.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/thread.rs | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index c72cc0ded9b..7b655693395 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -910,7 +910,7 @@ impl<'a> Reader for &'a mut Reader { /// Returns a slice of `v` between `start` and `end`. /// -/// Similar to `slice()` except this function only bounds the sclie on the +/// Similar to `slice()` except this function only bounds the slice on the /// capacity of `v`, not the length. /// /// # Failure diff --git a/src/libstd/io/process.rs b/src/libstd/io/process.rs index 059286339a6..3cb2fe1c8f1 100644 --- a/src/libstd/io/process.rs +++ b/src/libstd/io/process.rs @@ -873,7 +873,7 @@ mod tests { pub fn sleeper() -> Process { // There's a `timeout` command on windows, but it doesn't like having // its output piped, so instead just ping ourselves a few times with - // gaps inbetweeen so we're sure this process is alive for awhile + // gaps in between so we're sure this process is alive for awhile Command::new("ping").arg("127.0.0.1").arg("-n").arg("1000").spawn().unwrap() } diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index 5db09076c98..84b91814c87 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -102,7 +102,7 @@ local_data_key!(local_stdout: Box<Writer:Send>) pub fn stdin() -> BufferedReader<StdReader> { // The default buffer capacity is 64k, but apparently windows doesn't like // 64k reads on stdin. See #13304 for details, but the idea is that on - // windows we use a slighly smaller buffer that's been seen to be + // windows we use a slightly smaller buffer that's been seen to be // acceptable. if cfg!(windows) { BufferedReader::with_capacity(8 * 1024, stdin_raw()) diff --git a/src/libstd/io/timer.rs b/src/libstd/io/timer.rs index 67b6d3c476c..1529cf8f92d 100644 --- a/src/libstd/io/timer.rs +++ b/src/libstd/io/timer.rs @@ -218,7 +218,7 @@ mod test { iotest!(fn test_io_timer_oneshot_then_sleep() { let mut timer = Timer::new().unwrap(); let rx = timer.oneshot(100000000000); - timer.sleep(1); // this should inalidate rx + timer.sleep(1); // this should invalidate rx assert_eq!(rx.recv_opt(), Err(())); }) @@ -352,7 +352,7 @@ mod test { let mut timer1 = Timer::new().unwrap(); timer1.oneshot(1); let mut timer2 = Timer::new().unwrap(); - // while sleeping, the prevous timer should fire and not have its + // while sleeping, the previous timer should fire and not have its // callback do something terrible. timer2.sleep(2); }) @@ -361,7 +361,7 @@ mod test { let mut timer1 = Timer::new().unwrap(); timer1.periodic(1); let mut timer2 = Timer::new().unwrap(); - // while sleeping, the prevous timer should fire and not have its + // while sleeping, the previous timer should fire and not have its // callback do something terrible. timer2.sleep(2); }) 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(); diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 9a7e061c472..dd692d3fc01 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -320,7 +320,7 @@ pub fn env_as_bytes() -> Vec<(Vec<u8>,Vec<u8>)> { /// let key = "HOME"; /// match std::os::getenv(key) { /// Some(val) => println!("{}: {}", key, val), -/// None => println!("{} is not defined in the environnement.", key) +/// None => println!("{} is not defined in the environment.", key) /// } /// ``` pub fn getenv(n: &str) -> Option<String> { diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index e53842ecd8f..9bb137edb82 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -186,7 +186,7 @@ impl GenericPathUnsafe for Path { ret } - /// See `GenericPathUnsafe::set_filename_unchecekd`. + /// See `GenericPathUnsafe::set_filename_unchecked`. /// /// # Failure /// diff --git a/src/libstd/rt/thread.rs b/src/libstd/rt/thread.rs index 81dcf909706..5a077e511c0 100644 --- a/src/libstd/rt/thread.rs +++ b/src/libstd/rt/thread.rs @@ -243,7 +243,7 @@ mod imp { // EINVAL means |stack_size| is either too small or not a // multiple of the system page size. Because it's definitely // >= PTHREAD_STACK_MIN, it must be an alignment issue. - // Round up to the neareast page and try again. + // Round up to the nearest page and try again. let page_size = os::page_size(); let stack_size = (stack_size + page_size - 1) & (-(page_size - 1) - 1); assert_eq!(pthread_attr_setstacksize(&mut attr, stack_size as libc::size_t), 0); |
