about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-12-11 09:56:51 +0000
committerbors <bors@rust-lang.org>2015-12-11 09:56:51 +0000
commit89ec45ced42a37a77ff1b71be5b903eb313a77e7 (patch)
treea7bcd9b02b4f683128153af2e023ff8598776d22
parent81dd3824ff4f4f85db2a092dab78e5e6c05f96cc (diff)
parent96b3fc203cc0266a8a2d4338b84c7ff78bb93c9a (diff)
downloadrust-89ec45ced42a37a77ff1b71be5b903eb313a77e7.tar.gz
rust-89ec45ced42a37a77ff1b71be5b903eb313a77e7.zip
Auto merge of #30308 - tsion:typo, r=sanxiyn
r? @steveklabnik
-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]