Skip to content

Commit 00d21c9

Browse files
authored
Document AtomicPtr bit validity
1 parent db34b08 commit 00d21c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/sync/atomic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 in-memory representation as a `*mut T`.
275+
/// This type has the same memory layout 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)