Skip to content

Commit 91ec61f

Browse files
committed
Remove duplicate alignment document for 'atomic_from_ptr'
1 parent 58b4ebc commit 91ec61f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/core/src/sync/atomic.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2109,7 +2109,6 @@ macro_rules! atomic_int {
21092109
///
21102110
/// # Safety
21112111
///
2112-
/// * `ptr` must be aligned to `align_of::<AtomicBool>()` (note that on some platforms this can be bigger than `align_of::<bool>()`).
21132112
#[doc = concat!(" * `ptr` must be aligned to `align_of::<", stringify!($atomic_type), ">()` (note that on some platforms this can be bigger than `align_of::<", stringify!($int_type), ">()`).")]
21142113
/// * `ptr` must be [valid] for both reads and writes for the whole lifetime `'a`.
21152114
/// * The value behind `ptr` must not be accessed through non-atomic operations for the whole lifetime `'a`.

0 commit comments

Comments
 (0)