Skip to content

Commit 2735f43

Browse files
Fix links in SliceIndex documentation
1 parent d8ed1b0 commit 2735f43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/slice/mod.rs

+2
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)