Skip to content

Commit

Permalink
Clarify AcqRel's docs
Browse files Browse the repository at this point in the history
This implied things that are not true.

Fixes rust-lang#49127
  • Loading branch information
steveklabnik committed Mar 19, 2018
1 parent a04b88d commit deae8de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libcore/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ pub enum Ordering {
/// [`Release`]: http://llvm.org/docs/Atomics.html#release
#[stable(feature = "rust1", since = "1.0.0")]
Acquire,
/// When coupled with a load, uses [`Acquire`] ordering, and with a store
/// [`Release`] ordering.
/// Has the effects of both [`Acquire`] and [`Release`] together.
///
/// If you only are concerned about a load or a store, consider using one of those instead.
///
/// [`Acquire`]: http://llvm.org/docs/Atomics.html#acquire
/// [`Release`]: http://llvm.org/docs/Atomics.html#release
Expand Down

0 comments on commit deae8de

Please sign in to comment.