We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mut
1 parent a513c84 commit f1a63bcCopy full SHA for f1a63bc
library/core/src/sync/atomic.rs
@@ -2714,7 +2714,7 @@ macro_rules! atomic_int {
2714
#[doc = concat!(" fn my_atomic_op(arg: *mut ", stringify!($int_type), ");")]
2715
/// }
2716
///
2717
- #[doc = concat!("let mut atomic = ", stringify!($atomic_type), "::new(1);")]
+ #[doc = concat!("let atomic = ", stringify!($atomic_type), "::new(1);")]
2718
2719
// SAFETY: Safe as long as `my_atomic_op` is atomic.
2720
/// unsafe {
0 commit comments