mirror of
https://github.com/rust-lang/rust
synced 2024-10-18 14:33:50 +00:00
Fix a mistake in SliceIndex
's documentation
This commit is contained in:
parent
e6a4afc3af
commit
ce947735c0
|
@ -138,7 +138,7 @@ impl Sealed for (ops::Bound<usize>, ops::Bound<usize>) {}
|
|||
/// A helper trait used for indexing operations.
|
||||
///
|
||||
/// 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")]
|
||||
#[rustc_diagnostic_item = "SliceIndex"]
|
||||
#[rustc_on_unimplemented(
|
||||
|
|
Loading…
Reference in a new issue