diff options
| author | Joshua Liebow-Feeser <joshlf@users.noreply.github.com> | 2024-03-03 08:06:41 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-03 08:06:41 -0800 |
| commit | fba87f6892a052fdaed45993a1ec03d6c51ab87d (patch) | |
| tree | afb402cdcebd9aff4824739ab56278c3c743c15a | |
| parent | 00d21c91f0cafc97dabe261f934af7ea0df089b4 (diff) | |
| download | rust-fba87f6892a052fdaed45993a1ec03d6c51ab87d.tar.gz rust-fba87f6892a052fdaed45993a1ec03d6c51ab87d.zip | |
Use "size and alignment" rather than layout
| -rw-r--r-- | library/core/src/sync/atomic.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 4eaacdfe794..0a0daa49926 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -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. |
