@@ -1495,24 +1495,31 @@ unsafe fn atomic_xor<T>(dst: *mut T, val: T, order: Ordering) -> T {
1495
1495
1496
1496
/// An atomic fence.
1497
1497
///
1498
- /// A fence 'A' which has `Release` ordering semantics, synchronizes with a
1499
- /// fence 'B' with (at least) `Acquire` semantics, if and only if there exists
1498
+ /// A fence 'A' which has [ `Release`] ordering semantics, synchronizes with a
1499
+ /// fence 'B' with (at least) [ `Acquire`] semantics, if and only if there exists
1500
1500
/// atomic operations X and Y, both operating on some atomic object 'M' such
1501
1501
/// that A is sequenced before X, Y is synchronized before B and Y observes
1502
1502
/// the change to M. This provides a happens-before dependence between A and B.
1503
1503
///
1504
- /// Atomic operations with `Release` or `Acquire` semantics can also synchronize
1504
+ /// Atomic operations with [ `Release`] or [ `Acquire`] semantics can also synchronize
1505
1505
/// with a fence.
1506
1506
///
1507
- /// A fence which has `SeqCst` ordering, in addition to having both `Acquire`
1508
- /// and `Release` semantics, participates in the global program order of the
1509
- /// other `SeqCst` operations and/or fences.
1507
+ /// A fence which has [ `SeqCst`] ordering, in addition to having both [ `Acquire`]
1508
+ /// and [ `Release`] semantics, participates in the global program order of the
1509
+ /// other [ `SeqCst`] operations and/or fences.
1510
1510
///
1511
- /// Accepts `Acquire`, `Release`, `AcqRel` and `SeqCst` orderings.
1511
+ /// Accepts [ `Acquire`], [ `Release`], [ `AcqRel`] and [ `SeqCst`] orderings.
1512
1512
///
1513
1513
/// # Panics
1514
1514
///
1515
- /// Panics if `order` is `Relaxed`.
1515
+ /// Panics if `order` is [`Relaxed`].
1516
+ ///
1517
+ /// [`Ordering`]: enum.Ordering.html
1518
+ /// [`Acquire`]: enum.Ordering.html#variant.Acquire
1519
+ /// [`SeqCst`]: enum.Ordering.html#variant.SeqCst
1520
+ /// [`Release`]: enum.Ordering.html#variant.Release
1521
+ /// [`AcqRel`]: enum.Ordering.html#variant.AcqRel
1522
+ /// [`Relaxed`]: enum.Ordering.html#variant.Relaxed
1516
1523
#[ inline]
1517
1524
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1518
1525
pub fn fence ( order : Ordering ) {
0 commit comments