diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-01-12 07:28:43 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-01-12 07:28:43 +0000 |
| commit | 22b4c688956de0925f7a10a79cb0e1ca35f55425 (patch) | |
| tree | af1aec2ead61ac1ea302b73f82bc3e119ae85051 | |
| parent | f1a63bc2dd5a092ef5384c11f77c8d16d4b9fcc1 (diff) | |
| download | rust-22b4c688956de0925f7a10a79cb0e1ca35f55425.tar.gz rust-22b4c688956de0925f7a10a79cb0e1ca35f55425.zip | |
Make `// SAFETY` comment part of the doctest, and not surrounding code
| -rw-r--r-- | library/core/src/sync/atomic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 0c1ebaf77f8..14367eb09bc 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -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()); /// } |
