mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
Remove unused mut from a doctest
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user