]> git.lizzy.rs Git - rust.git/commitdiff
Fix links
authordylni <46035563+dylni@users.noreply.github.com>
Thu, 6 Aug 2020 03:16:18 +0000 (23:16 -0400)
committerdylni <46035563+dylni@users.noreply.github.com>
Thu, 6 Aug 2020 03:16:18 +0000 (23:16 -0400)
library/core/src/slice/mod.rs

index d5e07629a52cb017b49a9198b0c294be8eeb5774..8c6c0111c33ccb3df55c91e19923bc4456137119 100644 (file)
@@ -356,7 +356,7 @@ pub unsafe fn get_unchecked_mut<I>(&mut self, index: I) -> &mut I::Output
     ///
     /// [`get_unchecked`]: #method.get_unchecked
     /// [`get_unchecked_mut`]: #method.get_unchecked_mut
-    /// [`Range`]: ../ops/struct.Range.html
+    /// [`Range`]: ops/struct.Range.html
     ///
     /// # Panics
     ///
@@ -393,7 +393,7 @@ pub unsafe fn get_unchecked_mut<I>(&mut self, index: I) -> &mut I::Output
     /// [10, 40, 30].check_range(1..=usize::MAX);
     /// ```
     ///
-    /// [`Index::index`]: ../ops/trait.Index.html#tymethod.index
+    /// [`Index::index`]: ops/trait.Index.html#tymethod.index
     #[track_caller]
     #[unstable(feature = "slice_check_range", issue = "none")]
     pub fn check_range<R: RangeBounds<usize>>(&self, range: R) -> Range<usize> {