@@ -327,7 +327,7 @@ impl AtomicBool {
327
327
/// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this
328
328
/// operation. The first describes the required ordering if the operation succeeds while the
329
329
/// second describes the required ordering when the operation fails. The failure ordering can't
330
- /// be `Acquire ` or `AcqRel` and must be equivalent or weaker than the success ordering.
330
+ /// be `Release ` or `AcqRel` and must be equivalent or weaker than the success ordering.
331
331
///
332
332
/// # Examples
333
333
///
@@ -376,7 +376,7 @@ impl AtomicBool {
376
376
/// `compare_exchange_weak` takes two `Ordering` arguments to describe the memory
377
377
/// ordering of this operation. The first describes the required ordering if the operation
378
378
/// succeeds while the second describes the required ordering when the operation fails. The
379
- /// failure ordering can't be `Acquire ` or `AcqRel` and must be equivalent or weaker than the
379
+ /// failure ordering can't be `Release ` or `AcqRel` and must be equivalent or weaker than the
380
380
/// success ordering.
381
381
///
382
382
/// # Examples
@@ -663,7 +663,7 @@ impl AtomicIsize {
663
663
/// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this
664
664
/// operation. The first describes the required ordering if the operation succeeds while the
665
665
/// second describes the required ordering when the operation fails. The failure ordering can't
666
- /// be `Acquire ` or `AcqRel` and must be equivalent or weaker than the success ordering.
666
+ /// be `Release ` or `AcqRel` and must be equivalent or weaker than the success ordering.
667
667
///
668
668
/// # Examples
669
669
///
@@ -705,7 +705,7 @@ impl AtomicIsize {
705
705
/// `compare_exchange_weak` takes two `Ordering` arguments to describe the memory
706
706
/// ordering of this operation. The first describes the required ordering if the operation
707
707
/// succeeds while the second describes the required ordering when the operation fails. The
708
- /// failure ordering can't be `Acquire ` or `AcqRel` and must be equivalent or weaker than the
708
+ /// failure ordering can't be `Release ` or `AcqRel` and must be equivalent or weaker than the
709
709
/// success ordering.
710
710
///
711
711
/// # Examples
@@ -939,7 +939,7 @@ impl AtomicUsize {
939
939
/// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this
940
940
/// operation. The first describes the required ordering if the operation succeeds while the
941
941
/// second describes the required ordering when the operation fails. The failure ordering can't
942
- /// be `Acquire ` or `AcqRel` and must be equivalent or weaker than the success ordering.
942
+ /// be `Release ` or `AcqRel` and must be equivalent or weaker than the success ordering.
943
943
///
944
944
/// # Examples
945
945
///
@@ -981,7 +981,7 @@ impl AtomicUsize {
981
981
/// `compare_exchange_weak` takes two `Ordering` arguments to describe the memory
982
982
/// ordering of this operation. The first describes the required ordering if the operation
983
983
/// succeeds while the second describes the required ordering when the operation fails. The
984
- /// failure ordering can't be `Acquire ` or `AcqRel` and must be equivalent or weaker than the
984
+ /// failure ordering can't be `Release ` or `AcqRel` and must be equivalent or weaker than the
985
985
/// success ordering.
986
986
///
987
987
/// # Examples
@@ -1223,7 +1223,7 @@ impl<T> AtomicPtr<T> {
1223
1223
/// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this
1224
1224
/// operation. The first describes the required ordering if the operation succeeds while the
1225
1225
/// second describes the required ordering when the operation fails. The failure ordering can't
1226
- /// be `Acquire ` or `AcqRel` and must be equivalent or weaker than the success ordering.
1226
+ /// be `Release ` or `AcqRel` and must be equivalent or weaker than the success ordering.
1227
1227
///
1228
1228
/// # Examples
1229
1229
///
@@ -1270,7 +1270,7 @@ impl<T> AtomicPtr<T> {
1270
1270
/// `compare_exchange_weak` takes two `Ordering` arguments to describe the memory
1271
1271
/// ordering of this operation. The first describes the required ordering if the operation
1272
1272
/// succeeds while the second describes the required ordering when the operation fails. The
1273
- /// failure ordering can't be `Acquire ` or `AcqRel` and must be equivalent or weaker than the
1273
+ /// failure ordering can't be `Release ` or `AcqRel` and must be equivalent or weaker than the
1274
1274
/// success ordering.
1275
1275
///
1276
1276
/// # Examples
@@ -1396,8 +1396,8 @@ unsafe fn atomic_compare_exchange<T>(dst: *mut T,
1396
1396
( AcqRel , Relaxed ) => intrinsics:: atomic_cxchg_acqrel_failrelaxed ( dst, old, new) ,
1397
1397
( SeqCst , Relaxed ) => intrinsics:: atomic_cxchg_failrelaxed ( dst, old, new) ,
1398
1398
( SeqCst , Acquire ) => intrinsics:: atomic_cxchg_failacq ( dst, old, new) ,
1399
- ( _, Release ) => panic ! ( "there is no such thing as an acquire/release failure ordering" ) ,
1400
- ( _, AcqRel ) => panic ! ( "there is no such thing as a release failure ordering" ) ,
1399
+ ( _, AcqRel ) => panic ! ( "there is no such thing as an acquire/release failure ordering" ) ,
1400
+ ( _, Release ) => panic ! ( "there is no such thing as a release failure ordering" ) ,
1401
1401
_ => panic ! ( "a failure ordering can't be stronger than a success ordering" ) ,
1402
1402
} ;
1403
1403
if ok {
@@ -1446,8 +1446,8 @@ unsafe fn atomic_compare_exchange_weak<T>(dst: *mut T,
1446
1446
( AcqRel , Relaxed ) => intrinsics:: atomic_cxchgweak_acqrel_failrelaxed ( dst, old, new) ,
1447
1447
( SeqCst , Relaxed ) => intrinsics:: atomic_cxchgweak_failrelaxed ( dst, old, new) ,
1448
1448
( SeqCst , Acquire ) => intrinsics:: atomic_cxchgweak_failacq ( dst, old, new) ,
1449
- ( _, Release ) => panic ! ( "there is no such thing as an acquire/release failure ordering" ) ,
1450
- ( _, AcqRel ) => panic ! ( "there is no such thing as a release failure ordering" ) ,
1449
+ ( _, AcqRel ) => panic ! ( "there is no such thing as an acquire/release failure ordering" ) ,
1450
+ ( _, Release ) => panic ! ( "there is no such thing as a release failure ordering" ) ,
1451
1451
_ => panic ! ( "a failure ordering can't be stronger than a success ordering" ) ,
1452
1452
} ;
1453
1453
if ok {
0 commit comments