mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
Fix a documentation typo
This commit is contained in:
parent
28bed3f5e6
commit
ed08701539
@ -711,7 +711,7 @@ impl AtomicUsize {
|
||||
/// ```
|
||||
/// use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
///
|
||||
/// let some_usize= AtomicUsize::new(5);
|
||||
/// let some_usize = AtomicUsize::new(5);
|
||||
///
|
||||
/// assert_eq!(some_usize.swap(10, Ordering::Relaxed), 5);
|
||||
/// assert_eq!(some_usize.load(Ordering::Relaxed), 10);
|
||||
|
Loading…
Reference in New Issue
Block a user