mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
Add doc aliases to compare_exchange[_weak]
This commit is contained in:
@@ -546,6 +546,7 @@ pub fn compare_and_swap(&self, current: bool, new: bool, order: Ordering) -> boo
|
||||
/// ```
|
||||
#[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 @@ pub fn compare_exchange(
|
||||
/// ```
|
||||
#[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,
|
||||
|
||||
Reference in New Issue
Block a user