about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-08-18 08:28:04 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-08-18 08:28:04 +1000
commit6440343a6c26fca12ef2e323fa7738dce9da1986 (patch)
tree1fa6106fcc49f2a567a36644a8a6c3c32b57f21c /src/libstd
parent72fd02d93985bc9be359d736eec0484cb51a8b3f (diff)
downloadrust-6440343a6c26fca12ef2e323fa7738dce9da1986.tar.gz
rust-6440343a6c26fca12ef2e323fa7738dce9da1986.zip
More spelling corrections.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io.rs2
-rw-r--r--src/libstd/iterator.rs8
-rw-r--r--src/libstd/rt/io/extensions.rs2
-rw-r--r--src/libstd/rt/io/mod.rs2
-rw-r--r--src/libstd/to_str.rs2
5 files changed, 9 insertions, 7 deletions
diff --git a/src/libstd/io.rs b/src/libstd/io.rs
index 0df575b7f41..0668ad3cfd8 100644
--- a/src/libstd/io.rs
+++ b/src/libstd/io.rs
@@ -1462,7 +1462,7 @@ pub trait WriterUtil {
     /// (8 bytes).
     fn write_le_f64(&self, f: f64);
 
-    /// Write a litten-endian IEEE754 single-precision floating-point
+    /// Write a little-endian IEEE754 single-precision floating-point
     /// (4 bytes).
     fn write_le_f32(&self, f: f32);
 
diff --git a/src/libstd/iterator.rs b/src/libstd/iterator.rs
index 34bbe9292a5..1d32c5df14e 100644
--- a/src/libstd/iterator.rs
+++ b/src/libstd/iterator.rs
@@ -511,7 +511,8 @@ pub trait Iterator<A> {
         i
     }
 
-    /// Return the element that gives the maximum value from the specfied function
+    /// Return the element that gives the maximum value from the
+    /// specified function.
     ///
     /// # Example
     ///
@@ -534,7 +535,8 @@ pub trait Iterator<A> {
         }).map_move(|(x, _)| x)
     }
 
-    /// Return the element that gives the minimum value from the specfied function
+    /// Return the element that gives the minimum value from the
+    /// specified function.
     ///
     /// # Example
     ///
@@ -1541,7 +1543,7 @@ pub struct Repeat<A> {
 }
 
 impl<A: Clone> Repeat<A> {
-    /// Create a new `Repeat` that enlessly repeats the element `elt`.
+    /// Create a new `Repeat` that endlessly repeats the element `elt`.
     #[inline]
     pub fn new(elt: A) -> Repeat<A> {
         Repeat{element: elt}
diff --git a/src/libstd/rt/io/extensions.rs b/src/libstd/rt/io/extensions.rs
index 2d21bf0f9dc..d136ddc0fdf 100644
--- a/src/libstd/rt/io/extensions.rs
+++ b/src/libstd/rt/io/extensions.rs
@@ -262,7 +262,7 @@ pub trait WriterByteConversions {
     /// (8 bytes).
     fn write_le_f64(&mut self, f: f64);
 
-    /// Write a litten-endian IEEE754 single-precision floating-point
+    /// Write a little-endian IEEE754 single-precision floating-point
     /// (4 bytes).
     fn write_le_f32(&mut self, f: f32);
 
diff --git a/src/libstd/rt/io/mod.rs b/src/libstd/rt/io/mod.rs
index aec9168b5d1..9ec1b699b1d 100644
--- a/src/libstd/rt/io/mod.rs
+++ b/src/libstd/rt/io/mod.rs
@@ -430,7 +430,7 @@ pub trait Reader {
     ///         println(reader.read_line());
     ///     }
     ///
-    /// # Failue
+    /// # Failure
     ///
     /// Returns `true` on failure.
     fn eof(&mut self) -> bool;
diff --git a/src/libstd/to_str.rs b/src/libstd/to_str.rs
index 4649aac08b9..a8c450a0516 100644
--- a/src/libstd/to_str.rs
+++ b/src/libstd/to_str.rs
@@ -31,7 +31,7 @@ pub trait ToStr {
 
 /// Trait for converting a type to a string, consuming it in the process.
 pub trait ToStrConsume {
-    /// Cosume and convert to a string.
+    /// Consume and convert to a string.
     fn into_str(self) -> ~str;
 }