@@ -382,9 +382,9 @@ impl AtomicInt {
382
382
/// # Examples
383
383
///
384
384
/// ```
385
- /// use std::sync::atomic::{AtomicUint , SeqCst};
385
+ /// use std::sync::atomic::{AtomicInt , SeqCst};
386
386
///
387
- /// let foo = AtomicUint ::new(0b101101);
387
+ /// let foo = AtomicInt ::new(0b101101);
388
388
/// assert_eq!(0b101101, foo.fetch_and(0b110011, SeqCst));
389
389
/// assert_eq!(0b100001, foo.load(SeqCst));
390
390
#[ inline]
@@ -397,9 +397,9 @@ impl AtomicInt {
397
397
/// # Examples
398
398
///
399
399
/// ```
400
- /// use std::sync::atomic::{AtomicUint , SeqCst};
400
+ /// use std::sync::atomic::{AtomicInt , SeqCst};
401
401
///
402
- /// let foo = AtomicUint ::new(0b101101);
402
+ /// let foo = AtomicInt ::new(0b101101);
403
403
/// assert_eq!(0b101101, foo.fetch_or(0b110011, SeqCst));
404
404
/// assert_eq!(0b111111, foo.load(SeqCst));
405
405
#[ inline]
@@ -412,9 +412,9 @@ impl AtomicInt {
412
412
/// # Examples
413
413
///
414
414
/// ```
415
- /// use std::sync::atomic::{AtomicUint , SeqCst};
415
+ /// use std::sync::atomic::{AtomicInt , SeqCst};
416
416
///
417
- /// let foo = AtomicUint ::new(0b101101);
417
+ /// let foo = AtomicInt ::new(0b101101);
418
418
/// assert_eq!(0b101101, foo.fetch_xor(0b110011, SeqCst));
419
419
/// assert_eq!(0b011110, foo.load(SeqCst));
420
420
#[ inline]
0 commit comments