Make // SAFETY
comment part of the doctest, and not surrounding code
This commit is contained in:
parent
f1a63bc2dd
commit
22b4c68895
@ -2716,7 +2716,7 @@ macro_rules! atomic_int {
|
||||
///
|
||||
#[doc = concat!("let atomic = ", stringify!($atomic_type), "::new(1);")]
|
||||
///
|
||||
// SAFETY: Safe as long as `my_atomic_op` is atomic.
|
||||
/// // SAFETY: Safe as long as `my_atomic_op` is atomic.
|
||||
/// unsafe {
|
||||
/// my_atomic_op(atomic.as_mut_ptr());
|
||||
/// }
|
||||
|
Loading…
x
Reference in New Issue
Block a user