about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Liebow-Feeser <joshlf@users.noreply.github.com>2024-03-03 07:57:35 -0800
committerGitHub <noreply@github.com>2024-03-03 07:57:35 -0800
commitdb34b082c0895e80bc9eda17a4c859c51e6509bd (patch)
treeb71793f139dc8375f305cda09ec07110509d2e65
parent59a3a5dba314d4b693d141a56fde2e6a879d0af0 (diff)
downloadrust-db34b082c0895e80bc9eda17a4c859c51e6509bd.tar.gz
rust-db34b082c0895e80bc9eda17a4c859c51e6509bd.zip
Clarify bit validity for AtomicBool
-rw-r--r--library/core/src/sync/atomic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs
index 303f1bf8f65..5947f6569a7 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 in-memory representation as a [`bool`].
+/// This type has the same memory layout and bit validity as a [`bool`].
 ///
 /// **Note**: This type is only available on platforms that support atomic
 /// loads and stores of `u8`.