Skip to content

Commit c8e7b76

Browse files
Add missing urls for atomic fn docs
1 parent 1b38776 commit c8e7b76

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

src/libcore/sync/atomic.rs

+15-8
Original file line numberDiff line numberDiff line change
@@ -1431,24 +1431,31 @@ unsafe fn atomic_xor<T>(dst: *mut T, val: T, order: Ordering) -> T {
14311431

14321432
/// An atomic fence.
14331433
///
1434-
/// A fence 'A' which has `Release` ordering semantics, synchronizes with a
1435-
/// fence 'B' with (at least) `Acquire` semantics, if and only if there exists
1434+
/// A fence 'A' which has [`Release`] ordering semantics, synchronizes with a
1435+
/// fence 'B' with (at least) [`Acquire`] semantics, if and only if there exists
14361436
/// atomic operations X and Y, both operating on some atomic object 'M' such
14371437
/// that A is sequenced before X, Y is synchronized before B and Y observes
14381438
/// the change to M. This provides a happens-before dependence between A and B.
14391439
///
1440-
/// Atomic operations with `Release` or `Acquire` semantics can also synchronize
1440+
/// Atomic operations with [`Release`] or [`Acquire`] semantics can also synchronize
14411441
/// with a fence.
14421442
///
1443-
/// A fence which has `SeqCst` ordering, in addition to having both `Acquire`
1444-
/// and `Release` semantics, participates in the global program order of the
1445-
/// other `SeqCst` operations and/or fences.
1443+
/// A fence which has [`SeqCst`] ordering, in addition to having both [`Acquire`]
1444+
/// and [`Release`] semantics, participates in the global program order of the
1445+
/// other [`SeqCst`] operations and/or fences.
14461446
///
1447-
/// Accepts `Acquire`, `Release`, `AcqRel` and `SeqCst` orderings.
1447+
/// Accepts [`Acquire`], [`Release`], [`AcqRel`] and [`SeqCst`] orderings.
14481448
///
14491449
/// # Panics
14501450
///
1451-
/// Panics if `order` is `Relaxed`.
1451+
/// Panics if `order` is [`Relaxed`].
1452+
///
1453+
/// [`Ordering`]: enum.Ordering.html
1454+
/// [`Acquire`]: enum.Ordering.html#variant.Acquire
1455+
/// [`SeqCst`]: enum.Ordering.html#variant.SeqCst
1456+
/// [`Release`]: enum.Ordering.html#variant.Release
1457+
/// [`AcqRel`]: enum.Ordering.html#variant.AcqRel
1458+
/// [`Relaxed`]: enum.Ordering.html#variant.Relaxed
14521459
#[inline]
14531460
#[stable(feature = "rust1", since = "1.0.0")]
14541461
pub fn fence(order: Ordering) {

0 commit comments

Comments
 (0)