Skip to content

Commit 6061752

Browse files
authored
Rollup merge of #73707 - LeSeulArtichaut:patch-3, r=kennytm
Fix links in `SliceIndex` documentation See [this doc](https://doc.rust-lang.org/nightly/std/slice/trait.SliceIndex.html#tymethod.get_unchecked) whose links aren't active because of this missing newline.
2 parents 1755e3b + 2735f43 commit 6061752

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)