From 31c820552350e3f686a6f353982f0f31ecbaf4a7 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 3 May 2020 19:36:12 -0400 Subject: [PATCH] Update src/libcore/sync/atomic.rs Co-authored-by: Ralf Jung --- src/libcore/sync/atomic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs index f9d31f0a7d793..0e0ebfa1a452f 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