From 96b3fc203cc0266a8a2d4338b84c7ff78bb93c9a Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Thu, 10 Dec 2015 13:49:04 -0600 Subject: [PATCH] Correct 'bye' to 'byte' in str docs. --- src/libcollections/str.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index be3f93992d9e..68669b68d294 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]