Skip to content

Commit deae8de

Browse files
committed
Clarify AcqRel's docs
This implied things that are not true. Fixes #49127
1 parent a04b88d commit deae8de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libcore/sync/atomic.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,9 @@ pub enum Ordering {
205205
/// [`Release`]: http://llvm.org/docs/Atomics.html#release
206206
#[stable(feature = "rust1", since = "1.0.0")]
207207
Acquire,
208-
/// When coupled with a load, uses [`Acquire`] ordering, and with a store
209-
/// [`Release`] ordering.
208+
/// Has the effects of both [`Acquire`] and [`Release`] together.
209+
///
210+
/// If you only are concerned about a load or a store, consider using one of those instead.
210211
///
211212
/// [`Acquire`]: http://llvm.org/docs/Atomics.html#acquire
212213
/// [`Release`]: http://llvm.org/docs/Atomics.html#release

0 commit comments

Comments
 (0)