@@ -180,19 +180,19 @@ pub unsafe trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
180
180
#[ unstable( feature = "slice_index_methods" , issue = "none" ) ]
181
181
fn get_mut ( self , slice : & mut T ) -> Option < & mut Self :: Output > ;
182
182
183
- /// Returns a shared reference to the output at this location, without
183
+ /// Returns a pointer to the output at this location, without
184
184
/// performing any bounds checking.
185
185
/// Calling this method with an out-of-bounds index or a dangling `slice` pointer
186
- /// is *[undefined behavior]* even if the resulting reference is not used.
186
+ /// is *[undefined behavior]* even if the resulting pointer is not used.
187
187
///
188
188
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
189
189
#[ unstable( feature = "slice_index_methods" , issue = "none" ) ]
190
190
unsafe fn get_unchecked ( self , slice : * const T ) -> * const Self :: Output ;
191
191
192
- /// Returns a mutable reference to the output at this location, without
192
+ /// Returns a mutable pointer to the output at this location, without
193
193
/// performing any bounds checking.
194
194
/// Calling this method with an out-of-bounds index or a dangling `slice` pointer
195
- /// is *[undefined behavior]* even if the resulting reference is not used.
195
+ /// is *[undefined behavior]* even if the resulting pointer is not used.
196
196
///
197
197
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
198
198
#[ unstable( feature = "slice_index_methods" , issue = "none" ) ]
0 commit comments