diff options
| author | Steven Fackler <sfackler@palantir.com> | 2020-05-03 19:36:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-03 19:36:12 -0400 |
| commit | 31c820552350e3f686a6f353982f0f31ecbaf4a7 (patch) | |
| tree | 050cf7cb32a5400daedd46ba761b14be23ae7850 | |
| parent | 2ce3f85d46edbf5105f2e93d2cbe56ad777b41e6 (diff) | |
| download | rust-31c820552350e3f686a6f353982f0f31ecbaf4a7.tar.gz rust-31c820552350e3f686a6f353982f0f31ecbaf4a7.zip | |
Update src/libcore/sync/atomic.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
| -rw-r--r-- | src/libcore/sync/atomic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs index f9d31f0a7d7..0e0ebfa1a45 100644 --- a/src/libcore/sync/atomic.rs +++ b/src/libcore/sync/atomic.rs @@ -1807,7 +1807,7 @@ new value. Returns a `Result` of `Ok(previous_value)` if the function returned ` Note: This may call the function multiple times if the value has been changed from other threads in the meantime, as long as the function returns `Some(_)`, but the function will have been applied -but once to the stored value. +only once to the stored value. `fetch_update` takes two [`Ordering`] arguments to describe the memory ordering of this operation. The first describes the required ordering for when the operation finally succeeds while the second |
