Skip to content

Commit 7332e67

Browse files
authored
Rollup merge of rust-lang#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 e5a37fc + 2735f43 commit 7332e67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/libcore/slice/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2897,6 +2897,7 @@ pub trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
28972897
/// performing any bounds checking.
28982898
/// Calling this method with an out-of-bounds index is *[undefined behavior]*
28992899
/// even if the resulting reference is not used.
2900+
///
29002901
/// [undefined behavior]: ../../reference/behavior-considered-undefined.html
29012902
#[unstable(feature = "slice_index_methods", issue = "none")]
29022903
unsafe fn get_unchecked(self, slice: &T) -> &Self::Output;
@@ -2905,6 +2906,7 @@ pub trait SliceIndex<T: ?Sized>: private_slice_index::Sealed {
29052906
/// performing any bounds checking.
29062907
/// Calling this method with an out-of-bounds index is *[undefined behavior]*
29072908
/// even if the resulting reference is not used.
2909+
///
29082910
/// [undefined behavior]: ../../reference/behavior-considered-undefined.html
29092911
#[unstable(feature = "slice_index_methods", issue = "none")]
29102912
unsafe fn get_unchecked_mut(self, slice: &mut T) -> &mut Self::Output;

0 commit comments

Comments
 (0)