about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Liebow-Feeser <joshlf@users.noreply.github.com>2024-03-03 08:06:41 -0800
committerGitHub <noreply@github.com>2024-03-03 08:06:41 -0800
commitfba87f6892a052fdaed45993a1ec03d6c51ab87d (patch)
treeafb402cdcebd9aff4824739ab56278c3c743c15a
parent00d21c91f0cafc97dabe261f934af7ea0df089b4 (diff)
downloadrust-fba87f6892a052fdaed45993a1ec03d6c51ab87d.tar.gz
rust-fba87f6892a052fdaed45993a1ec03d6c51ab87d.zip
Use "size and alignment" rather than layout
-rw-r--r--library/core/src/sync/atomic.rs4
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.