Rollup merge of #150035 - agavra:patch-1, r=Mark-Simulacrum

fix docustring on fetch_or

The documentation had the same example twice in a row, but I think this was the intended second example.
This commit is contained in:
Matthias Krüger 2025-12-21 18:50:42 +01:00 committed by GitHub
commit b3f85e0014
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1151,8 +1151,8 @@ impl AtomicBool {
/// assert_eq!(foo.fetch_or(false, Ordering::SeqCst), true);
/// assert_eq!(foo.load(Ordering::SeqCst), true);
///
/// let foo = AtomicBool::new(true);
/// assert_eq!(foo.fetch_or(true, Ordering::SeqCst), true);
/// let foo = AtomicBool::new(false);
/// assert_eq!(foo.fetch_or(true, Ordering::SeqCst), false);
/// assert_eq!(foo.load(Ordering::SeqCst), true);
///
/// let foo = AtomicBool::new(false);