]> git.lizzy.rs Git - rust.git/commitdiff
Fix a documentation typo
authorAlexander Lopatin <alopatindev@gmail.com>
Mon, 1 Feb 2016 18:09:19 +0000 (21:09 +0300)
committerAlexander Lopatin <alopatindev@gmail.com>
Mon, 1 Feb 2016 18:09:19 +0000 (21:09 +0300)
src/libcore/sync/atomic.rs

index 21b76c1f4bec15f8ac37c049c351da5d1f3a25d7..700a577e20c92e2fb5ffc19b7965215b3c9e176c 100644 (file)
@@ -711,7 +711,7 @@ pub fn store(&self, val: usize, order: Ordering) {
     /// ```
     /// 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);