]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/sync/atomic.rs
Remove unused `mut` from a doctest
[rust.git] / library / core / src / sync / atomic.rs
index 8a7c3c3c3038ce2368de3ba0e197fb0d6c9e7f51..0c1ebaf77f8decf1467f329d6887626ca41da11c 100644 (file)
@@ -2714,7 +2714,7 @@ pub fn fetch_min(&self, val: $int_type, order: Ordering) -> $int_type {
             #[doc = concat!("    fn my_atomic_op(arg: *mut ", stringify!($int_type), ");")]
             /// }
             ///
-            #[doc = concat!("let mut atomic = ", stringify!($atomic_type), "::new(1);")]
+            #[doc = concat!("let atomic = ", stringify!($atomic_type), "::new(1);")]
             ///
             // SAFETY: Safe as long as `my_atomic_op` is atomic.
             /// unsafe {