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:
commit
b3f85e0014
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue