Skip to content

Commit 7ed7f65

Browse files
authored
Rollup merge of #97363 - wackbyte:sliceindex-doc-typo, r=JohnTitor
Fix a small mistake in `SliceIndex`'s documentation Originally, it said "`get_(mut_)unchecked`," but the method's actual name is `get_unchecked_mut`.
2 parents 29437d9 + ce94773 commit 7ed7f65

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)