about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-01-12 07:27:51 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-01-12 07:27:51 +0000
commitf1a63bc2dd5a092ef5384c11f77c8d16d4b9fcc1 (patch)
treebecdb30ee035b0925e3fd914b23242a6b7d15f6d
parenta513c84a5b54e83b158d0083385864c37cca358c (diff)
downloadrust-f1a63bc2dd5a092ef5384c11f77c8d16d4b9fcc1.tar.gz
rust-f1a63bc2dd5a092ef5384c11f77c8d16d4b9fcc1.zip
Remove unused `mut` from a doctest
-rw-r--r--library/core/src/sync/atomic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs
index 8a7c3c3c303..0c1ebaf77f8 100644
--- a/library/core/src/sync/atomic.rs
+++ b/library/core/src/sync/atomic.rs
@@ -2714,7 +2714,7 @@ macro_rules! atomic_int {
             #[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 {