Skip to content

Commit 89ec45c

Browse files
committed
Auto merge of #30308 - tsion:typo, r=sanxiyn
r? @steveklabnik
2 parents 81dd382 + 96b3fc2 commit 89ec45c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcollections/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ impl str {
305305
/// satisifed:
306306
///
307307
/// * `begin` must come before `end`.
308-
/// * `begin` and `end` must be bye positions within the string slice.
308+
/// * `begin` and `end` must be byte positions within the string slice.
309309
/// * `begin` and `end` must lie on UTF-8 sequence boundaries.
310310
///
311311
/// # Examples
@@ -348,7 +348,7 @@ impl str {
348348
/// satisifed:
349349
///
350350
/// * `begin` must come before `end`.
351-
/// * `begin` and `end` must be bye positions within the string slice.
351+
/// * `begin` and `end` must be byte positions within the string slice.
352352
/// * `begin` and `end` must lie on UTF-8 sequence boundaries.
353353
#[stable(feature = "str_slice_mut", since = "1.5.0")]
354354
#[inline]

0 commit comments

Comments
 (0)