File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2453,7 +2453,7 @@ impl str {
2453
2453
/// }
2454
2454
/// ```
2455
2455
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2456
- #[ rustc_deprecated( since = "1.29.0" , reason = "duplicates `get_unchecked` " ) ]
2456
+ #[ rustc_deprecated( since = "1.29.0" , reason = "use `get_unchecked(begin..end)` instead " ) ]
2457
2457
#[ inline]
2458
2458
pub unsafe fn slice_unchecked ( & self , begin : usize , end : usize ) -> & str {
2459
2459
( begin..end) . get_unchecked ( self )
@@ -2484,7 +2484,7 @@ impl str {
2484
2484
/// * `begin` and `end` must be byte positions within the string slice.
2485
2485
/// * `begin` and `end` must lie on UTF-8 sequence boundaries.
2486
2486
#[ stable( feature = "str_slice_mut" , since = "1.5.0" ) ]
2487
- #[ rustc_deprecated( since = "1.29.0" , reason = "duplicates `get_unchecked_mut` " ) ]
2487
+ #[ rustc_deprecated( since = "1.29.0" , reason = "use `get_unchecked_mut(begin..end)` instead " ) ]
2488
2488
#[ inline]
2489
2489
pub unsafe fn slice_mut_unchecked ( & mut self , begin : usize , end : usize ) -> & mut str {
2490
2490
( begin..end) . get_unchecked_mut ( self )
You can’t perform that action at this time.
0 commit comments