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.
2 parents 2e054a1 + 3493f8c commit 6064862Copy full SHA for 6064862
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