Skip to content

Commit

Permalink
Remove duplicate alignment document for 'atomic_from_ptr'
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Sep 9, 2023
1 parent 58b4ebc commit 91ec61f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/core/src/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2109,7 +2109,6 @@ macro_rules! atomic_int {
///
/// # Safety
///
/// * `ptr` must be aligned to `align_of::<AtomicBool>()` (note that on some platforms this can be bigger than `align_of::<bool>()`).
#[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), ">()`).")]
/// * `ptr` must be [valid] for both reads and writes for the whole lifetime `'a`.
/// * The value behind `ptr` must not be accessed through non-atomic operations for the whole lifetime `'a`.
Expand Down

0 comments on commit 91ec61f

Please sign in to comment.