Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 59a3a5d

Browse files
authored
Clarify atomic bit validity
The previous definition used the phrase "representation", which is ambiguous given the current state of memory model nomenclature in Rust. The new wording clarifies that size and bit validity are guaranteed to match the corresponding native integer type.
1 parent 9e73597 commit 59a3a5d

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
@@ -2121,7 +2121,7 @@ macro_rules! atomic_int {
21212121
$int_type:ident $atomic_type:ident) => {
21222122
/// An integer type which can be safely shared between threads.
21232123
///
2124-
/// This type has the same in-memory representation as the underlying
2124+
/// This type has the same in-memory size and bit validity as the underlying
21252125
/// integer type, [`
21262126
#[doc = $s_int_type]
21272127
/// `].

0 commit comments

Comments
 (0)