Skip to content

Commit 49fdf1e

Browse files
authored
Rollup merge of #89925 - gilescope:update-docs-atomic-usage, r=m-ou-se
updating docs to mention usage of AtomicBool Mouse mentioned we should point out that atomic bool is used by the std lib these days. ( m-ou-se/getrandom#1 )
2 parents 3babaac + d3bddf3 commit 49fdf1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/sync/atomic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
//! some atomic operations. Maximally portable code will want to be careful
6363
//! about which atomic types are used. `AtomicUsize` and `AtomicIsize` are
6464
//! generally the most portable, but even then they're not available everywhere.
65-
//! For reference, the `std` library requires pointer-sized atomics, although
65+
//! For reference, the `std` library requires `AtomicBool`s and pointer-sized atomics, although
6666
//! `core` does not.
6767
//!
6868
//! Currently you'll need to use `#[cfg(target_arch)]` primarily to

0 commit comments

Comments
 (0)