diff options
| author | Wojciech Nawrocki <wjnawrocki+gh@protonmail.com> | 2016-06-02 19:36:10 +0200 |
|---|---|---|
| committer | Wojciech Nawrocki <wjnawrocki+gh@protonmail.com> | 2016-06-02 19:36:10 +0200 |
| commit | 8841f26e94705490b19f15479e86b3986549f8bb (patch) | |
| tree | c2cb9cda9ab19bc677710147364ee0fc6fc542e6 | |
| parent | b47a442f0b868b8501a894c3fdc05719eb337962 (diff) | |
| download | rust-8841f26e94705490b19f15479e86b3986549f8bb.tar.gz rust-8841f26e94705490b19f15479e86b3986549f8bb.zip | |
atomic doc: fix statement
| -rw-r--r-- | src/libcore/sync/atomic.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs index 658b1312c49..47d9deb62ff 100644 --- a/src/libcore/sync/atomic.rs +++ b/src/libcore/sync/atomic.rs @@ -289,7 +289,7 @@ impl AtomicBool { /// Stores a value into the `bool` if the current value is the same as the `current` value. /// /// The return value is a result indicating whether the new value was written and containing - /// the previous value. On success this value is guaranteed to be equal to `new`. + /// the previous value. On success this value is guaranteed to be equal to `current`. /// /// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this /// operation. The first describes the required ordering if the operation succeeds while the @@ -633,7 +633,7 @@ impl<T> AtomicPtr<T> { /// Stores a value into the pointer if the current value is the same as the `current` value. /// /// The return value is a result indicating whether the new value was written and containing - /// the previous value. On success this value is guaranteed to be equal to `new`. + /// the previous value. On success this value is guaranteed to be equal to `current`. /// /// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this /// operation. The first describes the required ordering if the operation succeeds while the @@ -886,7 +886,7 @@ macro_rules! atomic_int { /// /// The return value is a result indicating whether the new value was written and /// containing the previous value. On success this value is guaranteed to be equal to - /// `new`. + /// `current`. /// /// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of /// this operation. The first describes the required ordering if the operation succeeds |
