@@ -327,7 +327,7 @@ impl AtomicBool {
327327 /// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this
328328 /// operation. The first describes the required ordering if the operation succeeds while the
329329 /// 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.
331331 ///
332332 /// # Examples
333333 ///
@@ -376,7 +376,7 @@ impl AtomicBool {
376376 /// `compare_exchange_weak` takes two `Ordering` arguments to describe the memory
377377 /// ordering of this operation. The first describes the required ordering if the operation
378378 /// 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
380380 /// success ordering.
381381 ///
382382 /// # Examples
@@ -663,7 +663,7 @@ impl AtomicIsize {
663663 /// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this
664664 /// operation. The first describes the required ordering if the operation succeeds while the
665665 /// 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.
667667 ///
668668 /// # Examples
669669 ///
@@ -705,7 +705,7 @@ impl AtomicIsize {
705705 /// `compare_exchange_weak` takes two `Ordering` arguments to describe the memory
706706 /// ordering of this operation. The first describes the required ordering if the operation
707707 /// 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
709709 /// success ordering.
710710 ///
711711 /// # Examples
@@ -939,7 +939,7 @@ impl AtomicUsize {
939939 /// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this
940940 /// operation. The first describes the required ordering if the operation succeeds while the
941941 /// 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.
943943 ///
944944 /// # Examples
945945 ///
@@ -981,7 +981,7 @@ impl AtomicUsize {
981981 /// `compare_exchange_weak` takes two `Ordering` arguments to describe the memory
982982 /// ordering of this operation. The first describes the required ordering if the operation
983983 /// 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
985985 /// success ordering.
986986 ///
987987 /// # Examples
@@ -1223,7 +1223,7 @@ impl<T> AtomicPtr<T> {
12231223 /// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this
12241224 /// operation. The first describes the required ordering if the operation succeeds while the
12251225 /// 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.
12271227 ///
12281228 /// # Examples
12291229 ///
@@ -1270,7 +1270,7 @@ impl<T> AtomicPtr<T> {
12701270 /// `compare_exchange_weak` takes two `Ordering` arguments to describe the memory
12711271 /// ordering of this operation. The first describes the required ordering if the operation
12721272 /// 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
12741274 /// success ordering.
12751275 ///
12761276 /// # Examples
@@ -1396,8 +1396,8 @@ unsafe fn atomic_compare_exchange<T>(dst: *mut T,
13961396 ( AcqRel , Relaxed ) => intrinsics:: atomic_cxchg_acqrel_failrelaxed ( dst, old, new) ,
13971397 ( SeqCst , Relaxed ) => intrinsics:: atomic_cxchg_failrelaxed ( dst, old, new) ,
13981398 ( 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" ) ,
14011401 _ => panic ! ( "a failure ordering can't be stronger than a success ordering" ) ,
14021402 } ;
14031403 if ok {
@@ -1446,8 +1446,8 @@ unsafe fn atomic_compare_exchange_weak<T>(dst: *mut T,
14461446 ( AcqRel , Relaxed ) => intrinsics:: atomic_cxchgweak_acqrel_failrelaxed ( dst, old, new) ,
14471447 ( SeqCst , Relaxed ) => intrinsics:: atomic_cxchgweak_failrelaxed ( dst, old, new) ,
14481448 ( 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" ) ,
14511451 _ => panic ! ( "a failure ordering can't be stronger than a success ordering" ) ,
14521452 } ;
14531453 if ok {
0 commit comments