about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorScott Olson <scott@solson.me>2015-12-10 13:49:04 -0600
committerScott Olson <scott@solson.me>2015-12-10 13:49:04 -0600
commit96b3fc203cc0266a8a2d4338b84c7ff78bb93c9a (patch)
tree3acd898a54d7c8bd3a2c0f0f772c95a0cd245a83 /src
parent41a33852b8ededcb3edd62d2e0ab7fca9fbf324f (diff)
downloadrust-96b3fc203cc0266a8a2d4338b84c7ff78bb93c9a.tar.gz
rust-96b3fc203cc0266a8a2d4338b84c7ff78bb93c9a.zip
Correct 'bye' to 'byte' in str docs.
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/str.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs
index be3f93992d9..68669b68d29 100644
--- a/src/libcollections/str.rs
+++ b/src/libcollections/str.rs
@@ -305,7 +305,7 @@ impl str {
     /// satisifed:
     ///
     /// * `begin` must come before `end`.
-    /// * `begin` and `end` must be bye positions within the string slice.
+    /// * `begin` and `end` must be byte positions within the string slice.
     /// * `begin` and `end` must lie on UTF-8 sequence boundaries.
     ///
     /// # Examples
@@ -348,7 +348,7 @@ impl str {
     /// satisifed:
     ///
     /// * `begin` must come before `end`.
-    /// * `begin` and `end` must be bye positions within the string slice.
+    /// * `begin` and `end` must be byte positions within the string slice.
     /// * `begin` and `end` must lie on UTF-8 sequence boundaries.
     #[stable(feature = "str_slice_mut", since = "1.5.0")]
     #[inline]