Skip to content

Commit fba87f6

Browse files
authored
Use "size and alignment" rather than layout
1 parent 00d21c9 commit fba87f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/sync/atomic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const EMULATE_ATOMIC_BOOL: bool =
243243

244244
/// A boolean type which can be safely shared between threads.
245245
///
246-
/// This type has the same memory layout and bit validity as a [`bool`].
246+
/// This type has the same size, alignment, and bit validity as a [`bool`].
247247
///
248248
/// **Note**: This type is only available on platforms that support atomic
249249
/// loads and stores of `u8`.
@@ -272,7 +272,7 @@ unsafe impl Sync for AtomicBool {}
272272

273273
/// A raw pointer type which can be safely shared between threads.
274274
///
275-
/// This type has the same memory layout and bit validity as a `*mut T`.
275+
/// This type has the same size, alignment, and bit validity as a `*mut T`.
276276
///
277277
/// **Note**: This type is only available on platforms that support atomic
278278
/// loads and stores of pointers. Its size depends on the target pointer's size.

0 commit comments

Comments
 (0)