Skip to content

Commit f1a63bc

Browse files
committed
Remove unused mut from a doctest
1 parent a513c84 commit f1a63bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/sync/atomic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2714,7 +2714,7 @@ macro_rules! atomic_int {
27142714
#[doc = concat!(" fn my_atomic_op(arg: *mut ", stringify!($int_type), ");")]
27152715
/// }
27162716
///
2717-
#[doc = concat!("let mut atomic = ", stringify!($atomic_type), "::new(1);")]
2717+
#[doc = concat!("let atomic = ", stringify!($atomic_type), "::new(1);")]
27182718
///
27192719
// SAFETY: Safe as long as `my_atomic_op` is atomic.
27202720
/// unsafe {

0 commit comments

Comments
 (0)