File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -2817,6 +2817,7 @@ pub trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
28172817 /// performing any bounds checking.
28182818 /// Calling this method with an out-of-bounds index is *[undefined behavior]*
28192819 /// even if the resulting reference is not used.
2820+ ///
28202821 /// [undefined behavior]: ../../reference/behavior-considered-undefined.html
28212822 #[ unstable( feature = "slice_index_methods" , issue = "none" ) ]
28222823 unsafe fn get_unchecked ( self , slice : & T ) -> & Self :: Output ;
@@ -2825,6 +2826,7 @@ pub trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
28252826 /// performing any bounds checking.
28262827 /// Calling this method with an out-of-bounds index is *[undefined behavior]*
28272828 /// even if the resulting reference is not used.
2829+ ///
28282830 /// [undefined behavior]: ../../reference/behavior-considered-undefined.html
28292831 #[ unstable( feature = "slice_index_methods" , issue = "none" ) ]
28302832 unsafe fn get_unchecked_mut ( self , slice : & mut T ) -> & mut Self :: Output ;
You can’t perform that action at this time.
0 commit comments