Skip to content

Commit 7dd8c09

Browse files
Rollup merge of rust-lang#48260 - dns2utf8:add_link_to_yield, r=kennytm
[doc] Add link to yield_now A convenient link.
2 parents 01c7f3a + e812da0 commit 7dd8c09

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libcore/sync/atomic.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ use fmt;
9797
/// Save power or switch hyperthreads in a busy-wait spin-loop.
9898
///
9999
/// This function is deliberately more primitive than
100-
/// `std::thread::yield_now` and does not directly yield to the
101-
/// system's scheduler. In some cases it might be useful to use a
102-
/// combination of both functions. Careful benchmarking is advised.
100+
/// [`std::thread::yield_now`](../../../std/thread/fn.yield_now.html) and
101+
/// does not directly yield to the system's scheduler.
102+
/// In some cases it might be useful to use a combination of both functions.
103+
/// Careful benchmarking is advised.
103104
///
104105
/// On some platforms this function may not do anything at all.
105106
#[inline]

0 commit comments

Comments
 (0)