@@ -1431,24 +1431,31 @@ unsafe fn atomic_xor<T>(dst: *mut T, val: T, order: Ordering) -> T {
1431
1431
1432
1432
/// An atomic fence.
1433
1433
///
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
1436
1436
/// atomic operations X and Y, both operating on some atomic object 'M' such
1437
1437
/// that A is sequenced before X, Y is synchronized before B and Y observes
1438
1438
/// the change to M. This provides a happens-before dependence between A and B.
1439
1439
///
1440
- /// Atomic operations with `Release` or `Acquire` semantics can also synchronize
1440
+ /// Atomic operations with [ `Release`] or [ `Acquire`] semantics can also synchronize
1441
1441
/// with a fence.
1442
1442
///
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.
1446
1446
///
1447
- /// Accepts `Acquire`, `Release`, `AcqRel` and `SeqCst` orderings.
1447
+ /// Accepts [ `Acquire`], [ `Release`], [ `AcqRel`] and [ `SeqCst`] orderings.
1448
1448
///
1449
1449
/// # Panics
1450
1450
///
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
1452
1459
#[ inline]
1453
1460
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1454
1461
pub fn fence ( order : Ordering ) {
0 commit comments