File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ unsafe impl SliceIndex<str> for ops::Range<usize> {
234
234
/// Implements substring slicing with syntax `&self[.. end]` or `&mut
235
235
/// self[.. end]`.
236
236
///
237
- /// Returns a slice of the given string from the byte range [`0` , `end`).
237
+ /// Returns a slice of the given string from the byte range \[0 , `end`).
238
238
/// Equivalent to `&self[0 .. end]` or `&mut self[0 .. end]`.
239
239
///
240
240
/// This operation is *O*(1).
@@ -304,9 +304,8 @@ unsafe impl SliceIndex<str> for ops::RangeTo<usize> {
304
304
/// Implements substring slicing with syntax `&self[begin ..]` or `&mut
305
305
/// self[begin ..]`.
306
306
///
307
- /// Returns a slice of the given string from the byte range [`begin`,
308
- /// `len`). Equivalent to `&self[begin .. len]` or `&mut self[begin ..
309
- /// len]`.
307
+ /// Returns a slice of the given string from the byte range \[`begin`, `len`).
308
+ /// Equivalent to `&self[begin .. len]` or `&mut self[begin .. len]`.
310
309
///
311
310
/// This operation is *O*(1).
312
311
///
@@ -433,7 +432,7 @@ unsafe impl SliceIndex<str> for ops::RangeInclusive<usize> {
433
432
/// Implements substring slicing with syntax `&self[..= end]` or `&mut
434
433
/// self[..= end]`.
435
434
///
436
- /// Returns a slice of the given string from the byte range [0, `end`].
435
+ /// Returns a slice of the given string from the byte range \ [0, `end`\ ].
437
436
/// Equivalent to `&self [0 .. end + 1]`, except if `end` has the maximum
438
437
/// value for `usize`.
439
438
///
Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ impl Wtf8 {
686
686
}
687
687
}
688
688
689
- /// Returns a slice of the given string for the byte range [`begin`..`end`).
689
+ /// Returns a slice of the given string for the byte range \ [`begin`..`end`).
690
690
///
691
691
/// # Panics
692
692
///
Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ const INTRA_DOC_LINK_EXCEPTIONS: &[(&str, &[&str])] = &[
85
85
( "core/slice/trait.SliceIndex.html" , & [ "begin</code>, <code>end" ] ) ,
86
86
( "alloc/slice/trait.SliceIndex.html" , & [ "begin</code>, <code>end" ] ) ,
87
87
( "std/slice/trait.SliceIndex.html" , & [ "begin</code>, <code>end" ] ) ,
88
+ ( "core/primitive.str.html" , & [ "begin</code>, <code>end" ] ) ,
89
+ ( "std/primitive.str.html" , & [ "begin</code>, <code>end" ] ) ,
88
90
89
91
] ;
90
92
You can’t perform that action at this time.
0 commit comments