We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf9de23 commit 263861fCopy full SHA for 263861f
core/src/sync/atomic.rs
@@ -443,8 +443,8 @@ impl AtomicBool {
443
///
444
/// # Safety
445
446
- /// * `ptr` must be aligned to `align_of::<AtomicBool>()` (note that on some platforms this can
447
- /// be bigger than `align_of::<bool>()`).
+ /// * `ptr` must be aligned to `align_of::<AtomicBool>()` (note that this is always true, since
+ /// `align_of::<AtomicBool>() == 1`).
448
/// * `ptr` must be [valid] for both reads and writes for the whole lifetime `'a`.
449
/// * You must adhere to the [Memory model for atomic accesses]. In particular, it is not
450
/// allowed to mix atomic and non-atomic accesses, or atomic accesses of different sizes,
0 commit comments