about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorJoseph Crail <jbcrail@gmail.com>2015-05-04 13:21:27 -0400
committerJoseph Crail <jbcrail@gmail.com>2015-05-04 13:21:27 -0400
commit464069a4bfff2e94cb91c6cc5f0da40bba086bc4 (patch)
tree06e9334d36c5e4accf6452d1ec45f7d3feeecbac /src/libcollections
parenta979efc2f961c2cf8d7afa57b905e73349b8f476 (diff)
Fix spelling errors in documentation.
Diffstat (limited to 'src/libcollections')
-rw-r--r--src/libcollections/str.rs4
-rw-r--r--src/libcollections/string.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs
index db9f526a0f2..38431ab5bf1 100644
--- a/src/libcollections/str.rs
+++ b/src/libcollections/str.rs
@@ -713,7 +713,7 @@ impl str {
     /// is skipped if empty.
     ///
     /// This method can be used for string data that is _terminated_,
-    /// rather than _seperated_ by a pattern.
+    /// rather than _separated_ by a pattern.
     ///
     /// # Iterator behavior
     ///
@@ -760,7 +760,7 @@ impl str {
     /// skipped if empty.
     ///
     /// This method can be used for string data that is _terminated_,
-    /// rather than _seperated_ by a pattern.
+    /// rather than _separated_ by a pattern.
     ///
     /// # Iterator behavior
     ///
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs
index ad5ed1c89cd..3c668f7fe9b 100644
--- a/src/libcollections/string.rs
+++ b/src/libcollections/string.rs
@@ -757,7 +757,7 @@ impl FromUtf8Error {
     #[stable(feature = "rust1", since = "1.0.0")]
     pub fn into_bytes(self) -> Vec<u8> { self.bytes }
 
-    /// Accesss the underlying UTF8-error that was the cause of this error.
+    /// Access the underlying UTF8-error that was the cause of this error.
     #[stable(feature = "rust1", since = "1.0.0")]
     pub fn utf8_error(&self) -> Utf8Error { self.error }
 }