Skip to content

Commit ce94773

Browse files
committed
Fix a mistake in SliceIndex's documentation
1 parent e6a4afc commit ce94773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/slice/index.rs

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

0 commit comments

Comments
 (0)