From ce947735c017a59f9732eaf2719707a8eaafa8f3 Mon Sep 17 00:00:00 2001 From: wackbyte Date: Tue, 24 May 2022 13:22:41 -0400 Subject: [PATCH] Fix a mistake in `SliceIndex`'s documentation --- library/core/src/slice/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/slice/index.rs b/library/core/src/slice/index.rs index 68de4e4e1f3..fd7ecf3daf3 100644 --- a/library/core/src/slice/index.rs +++ b/library/core/src/slice/index.rs @@ -138,7 +138,7 @@ impl Sealed for (ops::Bound, ops::Bound) {} /// 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(