Add doc aliases to compare_exchange[_weak]
This commit is contained in:
parent
828d4ace4d
commit
7f35e2d573
1 changed files with 2 additions and 0 deletions
|
@ -546,6 +546,7 @@ impl AtomicBool {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "extended_compare_and_swap", since = "1.10.0")]
|
||||
#[doc(alias = "compare_and_swap")]
|
||||
#[cfg(target_has_atomic = "8")]
|
||||
pub fn compare_exchange(
|
||||
&self,
|
||||
|
@ -599,6 +600,7 @@ impl AtomicBool {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "extended_compare_and_swap", since = "1.10.0")]
|
||||
#[doc(alias = "compare_and_swap")]
|
||||
#[cfg(target_has_atomic = "8")]
|
||||
pub fn compare_exchange_weak(
|
||||
&self,
|
||||
|
|
Loading…
Reference in a new issue