Add doc aliases to compare_exchange[_weak]

This commit is contained in:
Linus Färnstrand 2020-11-22 18:56:47 +01:00
parent 828d4ace4d
commit 7f35e2d573

View file

@ -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,