about summary refs log tree commit diff
diff options
context:
space:
mode:
authordylni <46035563+dylni@users.noreply.github.com>2020-08-05 23:16:18 -0400
committerdylni <46035563+dylni@users.noreply.github.com>2020-08-05 23:16:18 -0400
commit202b242d87c30c2fe1475342f9b93a8dfc65cd17 (patch)
tree6ed448d6eba89dac1ed350423df995db2c9469f1
parentbb70e52f5f5ee25012193f9f4f4372702b97b20e (diff)
downloadrust-202b242d87c30c2fe1475342f9b93a8dfc65cd17.tar.gz
rust-202b242d87c30c2fe1475342f9b93a8dfc65cd17.zip
Fix links
-rw-r--r--library/core/src/slice/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index d5e07629a52..8c6c0111c33 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -356,7 +356,7 @@ impl<T> [T] {
     ///
     /// [`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 @@ impl<T> [T] {
     /// [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> {