about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArno Haase <arno.haase@haase-consulting.com>2019-09-18 12:31:34 +0200
committerArno Haase <arno.haase@haase-consulting.com>2019-09-18 12:31:34 +0200
commiteb48b5d983fde79ab3595f250871116ee650c5e9 (patch)
tree28d7284a3314b7594eaac909c13c5a1ae6b99ef2
parentf4f136e67bedc098bea5e5dce6b286611908355b (diff)
broken hyperlinks in documentation
-rw-r--r--src/libcore/hint.rs2
-rw-r--r--src/libcore/sync/atomic.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/hint.rs b/src/libcore/hint.rs
index 3ea8b31fda6..ee4be6c9151 100644
--- a/src/libcore/hint.rs
+++ b/src/libcore/hint.rs
@@ -58,7 +58,7 @@ pub unsafe fn unreachable_unchecked() -> ! {
 /// **Note**: On platforms that do not support receiving spin-loop hints this function does not
 /// do anything at all.
 ///
-/// [`core::sync::atomic::spin_loop_hint`]: ./sync/atomic/fn.spin_loop_hint.html
+/// [`core::sync::atomic::spin_loop_hint`]: ../sync/atomic/fn.spin_loop_hint.html
 #[inline]
 #[unstable(feature = "renamed_spin_loop", issue = "55002")]
 pub fn spin_loop() {
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index 63ee9a42a0f..ab5af5682c1 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -148,7 +148,7 @@ use crate::hint::spin_loop;
 ///
 /// [`std::thread::yield_now`]: ../../../std/thread/fn.yield_now.html
 /// [`std::thread::sleep`]: ../../../std/thread/fn.sleep.html
-/// [`std::sync::Mutex`]: ../../../std/sync/Mutex.html
+/// [`std::sync::Mutex`]: ../../../std/sync/struct.Mutex.html
 #[inline]
 #[stable(feature = "spin_loop_hint", since = "1.24.0")]
 pub fn spin_loop_hint() {