Use "size and alignment" rather than layout
This commit is contained in:
parent
00d21c91f0
commit
fba87f6892
1 changed files with 2 additions and 2 deletions
|
|
@ -243,7 +243,7 @@ const EMULATE_ATOMIC_BOOL: bool =
|
|||
|
||||
/// A boolean type which can be safely shared between threads.
|
||||
///
|
||||
/// This type has the same memory layout and bit validity as a [`bool`].
|
||||
/// This type has the same size, alignment, and bit validity as a [`bool`].
|
||||
///
|
||||
/// **Note**: This type is only available on platforms that support atomic
|
||||
/// loads and stores of `u8`.
|
||||
|
|
@ -272,7 +272,7 @@ unsafe impl Sync for AtomicBool {}
|
|||
|
||||
/// A raw pointer type which can be safely shared between threads.
|
||||
///
|
||||
/// This type has the same memory layout and bit validity as a `*mut T`.
|
||||
/// This type has the same size, alignment, and bit validity as a `*mut T`.
|
||||
///
|
||||
/// **Note**: This type is only available on platforms that support atomic
|
||||
/// loads and stores of pointers. Its size depends on the target pointer's size.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue