Skip to content

Commit

Permalink
hedge our bets
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
  • Loading branch information
RalfJung and joshtriplett committed Jun 21, 2022
1 parent f020fc0 commit 4768bfc
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 @@ -4,7 +4,7 @@
//! threads, and are the building blocks of other concurrent
//! types.
//!
//! Rust atomics follow the same rules as [C++20 atomics][cpp], specifically `atomic_ref`.
//! Rust atomics currently follow the same rules as [C++20 atomics][cpp], specifically `atomic_ref`.
//! Basically, creating a *shared reference* to one of the Rust atomic types corresponds to creating
//! an `atomic_ref` in C++; the `atomic_ref` is destroyed when the lifetime of the shared reference
//! ends. (A Rust atomic type that is exclusively owned or behind a mutable reference does *not*
Expand Down

0 comments on commit 4768bfc

Please sign in to comment.