diff options
| author | bors <bors@rust-lang.org> | 2015-01-07 15:35:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-01-07 15:35:30 +0000 |
| commit | c0216c8945e7549f55d13302cc0a8ad41b2c2060 (patch) | |
| tree | ed9258d084dccaaca1336b560f5a369e2015a9d9 /src/libstd | |
| parent | 7377c0b1a91f48c95bf6d0b1b179f4fbada70869 (diff) | |
| parent | e3b7fedc20fcfe54e0ddb285fc6e6c6e862b3279 (diff) | |
| download | rust-c0216c8945e7549f55d13302cc0a8ad41b2c2060.tar.gz rust-c0216c8945e7549f55d13302cc0a8ad41b2c2060.zip | |
Merge pull request #20674 from jbcrail/fix-misspelled-comments
Fix misspelled comments. Reviewed-by: steveklabnik
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 2 | ||||
| -rw-r--r-- | src/libstd/ffi/c_str.rs | 2 | ||||
| -rw-r--r-- | src/libstd/fmt.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/windows/thread_local.rs | 2 | ||||
| -rw-r--r-- | src/libstd/thread.rs | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 2011c03c773..c3381d5cd64 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -184,7 +184,7 @@ fn test_resize_policy() { // simply introduce a new bit to the front of the hash. Therefore, if an // elements has ideal index i in the old table, it can have one of two ideal // locations in the new table. If the new bit is 0, then the new ideal index -// is i. If the new bit is 1, then the new ideal index is n + i. Intutively, +// is i. If the new bit is 1, then the new ideal index is n + i. Intuitively, // we are producing two independent tables of size n, and for each element we // independently choose which table to insert it into with equal probability. // However the rather than wrapping around themselves on overflowing their diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs index bef2344d9e8..70ea366bbf4 100644 --- a/src/libstd/ffi/c_str.rs +++ b/src/libstd/ffi/c_str.rs @@ -104,7 +104,7 @@ impl CString { unsafe { mem::transmute(self.as_slice()) } } - /// Equivalend to `as_slice_with_nul` except that the type returned is a + /// Equivalent to `as_slice_with_nul` except that the type returned is a /// `u8` slice instead of a `libc::c_char` slice. pub fn as_bytes_with_nul(&self) -> &[u8] { unsafe { mem::transmute(self.as_slice_with_nul()) } diff --git a/src/libstd/fmt.rs b/src/libstd/fmt.rs index 14b80045a9a..1623b6452b7 100644 --- a/src/libstd/fmt.rs +++ b/src/libstd/fmt.rs @@ -106,7 +106,7 @@ //! ``` //! //! This is invalid because the first argument is both referred to as a -//! hexidecimal as well as an +//! hexadecimal as well as an //! octal. //! //! There are various parameters which do require a particular type, however. diff --git a/src/libstd/sys/windows/thread_local.rs b/src/libstd/sys/windows/thread_local.rs index b96e26c7a86..d371023f218 100644 --- a/src/libstd/sys/windows/thread_local.rs +++ b/src/libstd/sys/windows/thread_local.rs @@ -191,7 +191,7 @@ unsafe fn unregister_dtor(key: Key) -> bool { // // The callback specified receives a number of parameters from... someone! // (the kernel? the runtime? I'm not qute sure!) There are a few events that -// this gets invoked for, but we're currentl only interested on when a +// this gets invoked for, but we're currently only interested on when a // thread or a process "detaches" (exits). The process part happens for the // last thread and the thread part happens for any normal thread. // diff --git a/src/libstd/thread.rs b/src/libstd/thread.rs index 71321ed3b71..c103365745c 100644 --- a/src/libstd/thread.rs +++ b/src/libstd/thread.rs @@ -164,7 +164,7 @@ use thunk::Thunk; use sys::thread as imp; use sys_common::{stack, thread_info}; -/// Thread configuation. Provides detailed control over the properties +/// Thread configuration. Provides detailed control over the properties /// and behavior of new threads. #[stable] pub struct Builder { |
