Skip to content

Commit 90e6eeb

Browse files
committed
Add doc aliases to compare_exchange[_weak]
1 parent df2ef1d commit 90e6eeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/sync/atomic.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ impl AtomicBool {
546546
/// ```
547547
#[inline]
548548
#[stable(feature = "extended_compare_and_swap", since = "1.10.0")]
549+
#[doc(alias = "compare_and_swap")]
549550
#[cfg(target_has_atomic = "8")]
550551
pub fn compare_exchange(
551552
&self,
@@ -599,6 +600,7 @@ impl AtomicBool {
599600
/// ```
600601
#[inline]
601602
#[stable(feature = "extended_compare_and_swap", since = "1.10.0")]
603+
#[doc(alias = "compare_and_swap")]
602604
#[cfg(target_has_atomic = "8")]
603605
pub fn compare_exchange_weak(
604606
&self,

0 commit comments

Comments
 (0)