mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-23 21:23:20 +00:00
Remove unused mut
from a doctest
This commit is contained in:
parent
a513c84a5b
commit
f1a63bc2dd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user