diff options
| author | Peter Minten <peter@pminten.nl> | 2014-10-04 13:29:09 +0200 |
|---|---|---|
| committer | Peter Minten <peter@pminten.nl> | 2014-10-04 13:29:09 +0200 |
| commit | 2bb7956a83fd55e6eed89199333676e7d2cbfc04 (patch) | |
| tree | deb1e5f6cf607228db90f355dd4aa3aae6a7ad2f /src/libcore | |
| parent | 749ff5e76a0d08837964e44c66654679a3a88bb8 (diff) | |
| download | rust-2bb7956a83fd55e6eed89199333676e7d2cbfc04.tar.gz rust-2bb7956a83fd55e6eed89199333676e7d2cbfc04.zip | |
Make examples for AtomicInt refer to AtomicInt
The examples for fetch_or, fetch_and and fetch_xor for std::sync::atomic::AtomicInt used AtomicUint instead of AtomicInt.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/atomic.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libcore/atomic.rs b/src/libcore/atomic.rs index e248b934b69..3e53746f58f 100644 --- a/src/libcore/atomic.rs +++ b/src/libcore/atomic.rs @@ -382,9 +382,9 @@ impl AtomicInt { /// # Examples /// /// ``` - /// use std::sync::atomic::{AtomicUint, SeqCst}; + /// use std::sync::atomic::{AtomicInt, SeqCst}; /// - /// let foo = AtomicUint::new(0b101101); + /// let foo = AtomicInt::new(0b101101); /// assert_eq!(0b101101, foo.fetch_and(0b110011, SeqCst)); /// assert_eq!(0b100001, foo.load(SeqCst)); #[inline] @@ -397,9 +397,9 @@ impl AtomicInt { /// # Examples /// /// ``` - /// use std::sync::atomic::{AtomicUint, SeqCst}; + /// use std::sync::atomic::{AtomicInt, SeqCst}; /// - /// let foo = AtomicUint::new(0b101101); + /// let foo = AtomicInt::new(0b101101); /// assert_eq!(0b101101, foo.fetch_or(0b110011, SeqCst)); /// assert_eq!(0b111111, foo.load(SeqCst)); #[inline] @@ -412,9 +412,9 @@ impl AtomicInt { /// # Examples /// /// ``` - /// use std::sync::atomic::{AtomicUint, SeqCst}; + /// use std::sync::atomic::{AtomicInt, SeqCst}; /// - /// let foo = AtomicUint::new(0b101101); + /// let foo = AtomicInt::new(0b101101); /// assert_eq!(0b101101, foo.fetch_xor(0b110011, SeqCst)); /// assert_eq!(0b011110, foo.load(SeqCst)); #[inline] |
