Remove unused mut from a doctest

This commit is contained in:
Maybe Waffle 2023-01-12 07:27:51 +00:00
parent a513c84a5b
commit f1a63bc2dd

View File

@ -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 {