about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorStefan Schindler <dns2utf8@estada.ch>2018-02-16 12:20:54 +0100
committerStefan Schindler <dns2utf8@estada.ch>2018-02-16 12:20:54 +0100
commite812da0ed050e2bfa7e12b6f35f077c6c3f19a1b (patch)
tree295391c1d1d975809ed341e33d91429ec5289339 /src/libcore/sync
parent3bf989f4c945e91c2ff99ac66ef0f6405e975ff4 (diff)
downloadrust-e812da0ed050e2bfa7e12b6f35f077c6c3f19a1b.tar.gz
rust-e812da0ed050e2bfa7e12b6f35f077c6c3f19a1b.zip
Force the link to std::thread::yield_now()
Diffstat (limited to 'src/libcore/sync')
-rw-r--r--src/libcore/sync/atomic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index 63fb6e437e4..25827edee7d 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -97,7 +97,7 @@ use fmt;
 /// Save power or switch hyperthreads in a busy-wait spin-loop.
 ///
 /// This function is deliberately more primitive than
-/// [`std::thread::yield_now`](../../thread/fn.yield_now.html) and
+/// [`std::thread::yield_now`](../../../std/thread/fn.yield_now.html) and
 /// does not directly yield to the system's scheduler.
 /// In some cases it might be useful to use a combination of both functions.
 /// Careful benchmarking is advised.