We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c53749 commit 2f60341Copy full SHA for 2f60341
src/libcore/sync/atomic.rs
@@ -1425,8 +1425,8 @@ assert_eq!(foo.load(Ordering::SeqCst), 0b011110);
1425
1426
doc_comment! {
1427
concat!("Fetches the value, and applies a function to it that returns an optional
1428
-new value. Returns a `Result` (`Ok(_)` if the function returned `Some(_)`, else `Err(_)`) of the
1429
-previous value.
+new value. Returns a `Result` of `Ok(previous_value)` if the function returned `Some(_)`, else
+`Err(previous_value)`.
1430
1431
Note: This may call the function multiple times if the value has been changed from other threads in
1432
the meantime, as long as the function returns `Some(_)`, but the function will have been applied
0 commit comments