Fix a mistake in `SliceIndex`'s documentation

This commit is contained in:
wackbyte 2022-05-24 13:22:41 -04:00
parent e6a4afc3af
commit ce947735c0
No known key found for this signature in database
GPG Key ID: 937F2AE5CCEFBF59
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ mod private_slice_index {
/// A helper trait used for indexing operations. /// A helper trait used for indexing operations.
/// ///
/// Implementations of this trait have to promise that if the argument /// Implementations of this trait have to promise that if the argument
/// to `get_(mut_)unchecked` is a safe reference, then so is the result. /// to `get_unchecked(_mut)` is a safe reference, then so is the result.
#[stable(feature = "slice_get_slice", since = "1.28.0")] #[stable(feature = "slice_get_slice", since = "1.28.0")]
#[rustc_diagnostic_item = "SliceIndex"] #[rustc_diagnostic_item = "SliceIndex"]
#[rustc_on_unimplemented( #[rustc_on_unimplemented(