Skip to content

Commit

Permalink
Rollup merge of #89925 - gilescope:update-docs-atomic-usage, r=m-ou-se
Browse files Browse the repository at this point in the history
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 )
  • Loading branch information
jackh726 committed Oct 16, 2021
2 parents 3babaac + d3bddf3 commit 49fdf1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
//! some atomic operations. Maximally portable code will want to be careful
//! about which atomic types are used. `AtomicUsize` and `AtomicIsize` are
//! generally the most portable, but even then they're not available everywhere.
//! For reference, the `std` library requires pointer-sized atomics, although
//! For reference, the `std` library requires `AtomicBool`s and pointer-sized atomics, although
//! `core` does not.
//!
//! Currently you'll need to use `#[cfg(target_arch)]` primarily to
Expand Down

0 comments on commit 49fdf1e

Please sign in to comment.