about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJoseph Crail <jbcrail@gmail.com>2015-01-06 20:53:18 -0500
committerJoseph Crail <jbcrail@gmail.com>2015-01-06 20:53:18 -0500
commite3b7fedc20fcfe54e0ddb285fc6e6c6e862b3279 (patch)
treeca1ece110a6f8dc31f5c30b595687829c08f5e82 /src/libstd
parentea6f65c5f1a3f84e010d2cef02a0160804e9567a (diff)
downloadrust-e3b7fedc20fcfe54e0ddb285fc6e6c6e862b3279.tar.gz
rust-e3b7fedc20fcfe54e0ddb285fc6e6c6e862b3279.zip
Fix misspelled comments.
I cleaned up comments prior to the 1.0 alpha release.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hash/map.rs2
-rw-r--r--src/libstd/ffi/c_str.rs2
-rw-r--r--src/libstd/fmt.rs2
-rw-r--r--src/libstd/sys/windows/thread_local.rs2
-rw-r--r--src/libstd/thread.rs2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs
index a3fc38c34e8..f9c7d10d40e 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 32f5f2d4536..ca797e44ccd 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 cc82d38ae2a..d7f30207273 100644
--- a/src/libstd/thread.rs
+++ b/src/libstd/thread.rs
@@ -142,7 +142,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.
 pub struct Builder {
     // A name for the thread-to-be, for identification in panic messages