We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentcf9de23 commit263861fCopy 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 thaton some platforms this can
447
-///be bigger than`align_of::<bool>()`).
+/// * `ptr` must be aligned to `align_of::<AtomicBool>()` (note thatthis 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,