Make // SAFETY
comment part of the doctest, and not surrounding code
This commit is contained in:
parent
f1a63bc2dd
commit
22b4c68895
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue