Skip to content

Commit 22b4c68

Browse files
committed
Make // SAFETY comment part of the doctest, and not surrounding code
1 parent f1a63bc commit 22b4c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/sync/atomic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2716,7 +2716,7 @@ macro_rules! atomic_int {
27162716
///
27172717
#[doc = concat!("let atomic = ", stringify!($atomic_type), "::new(1);")]
27182718
///
2719-
// SAFETY: Safe as long as `my_atomic_op` is atomic.
2719+
/// // SAFETY: Safe as long as `my_atomic_op` is atomic.
27202720
/// unsafe {
27212721
/// my_atomic_op(atomic.as_mut_ptr());
27222722
/// }

0 commit comments

Comments
 (0)