We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0160933 commit 3493f8cCopy full SHA for 3493f8c
library/core/src/sync/atomic.rs
@@ -1151,8 +1151,8 @@ impl AtomicBool {
1151
/// assert_eq!(foo.fetch_or(false, Ordering::SeqCst), true);
1152
/// assert_eq!(foo.load(Ordering::SeqCst), true);
1153
///
1154
- /// let foo = AtomicBool::new(true);
1155
- /// assert_eq!(foo.fetch_or(true, Ordering::SeqCst), true);
+ /// let foo = AtomicBool::new(false);
+ /// assert_eq!(foo.fetch_or(true, Ordering::SeqCst), false);
1156
1157
1158
/// let foo = AtomicBool::new(false);
0 commit comments