Skip to content

Commit 23013c7

Browse files
authored
update wording as per feedback
1 parent deae8de commit 23013c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcore/sync/atomic.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ pub enum Ordering {
207207
Acquire,
208208
/// Has the effects of both [`Acquire`] and [`Release`] together.
209209
///
210-
/// If you only are concerned about a load or a store, consider using one of those instead.
210+
/// This ordering is only applicable for operations that combine both loads and stores.
211+
///
212+
/// For loads it uses [`Acquire`] ordering. For stores it uses the [`Release`] ordering.
211213
///
212214
/// [`Acquire`]: http://llvm.org/docs/Atomics.html#acquire
213215
/// [`Release`]: http://llvm.org/docs/Atomics.html#release

0 commit comments

Comments
 (0)