File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ impl str {
305
305
/// satisifed:
306
306
///
307
307
/// * `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.
309
309
/// * `begin` and `end` must lie on UTF-8 sequence boundaries.
310
310
///
311
311
/// # Examples
@@ -348,7 +348,7 @@ impl str {
348
348
/// satisifed:
349
349
///
350
350
/// * `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.
352
352
/// * `begin` and `end` must lie on UTF-8 sequence boundaries.
353
353
#[ stable( feature = "str_slice_mut" , since = "1.5.0" ) ]
354
354
#[ inline]
You can’t perform that action at this time.
0 commit comments