1818//!
1919//! Each method takes an [`Ordering`] which represents the strength of
2020//! the memory barrier for that operation. These orderings are the
21- //! same as the [C++ atomic orderings][1]. For more information see the [nomicon][2].
21+ //! same as the [C++20 atomic orderings][1]. For more information see the [nomicon][2].
2222//!
2323//! [`Ordering`]: enum.Ordering.html
2424//!
@@ -218,7 +218,7 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
218218/// operations across all threads.
219219///
220220/// Rust's memory orderings are [the same as those of
221- /// C++](https://en.cppreference.com/w/cpp/atomic/memory_order).
221+ /// C++20 ](https://en.cppreference.com/w/cpp/atomic/memory_order).
222222///
223223/// For more information see the [nomicon].
224224///
@@ -231,7 +231,7 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
231231pub enum Ordering {
232232 /// No ordering constraints, only atomic operations.
233233 ///
234- /// Corresponds to [`memory_order_relaxed`] in C++.
234+ /// Corresponds to [`memory_order_relaxed`] in C++20 .
235235 ///
236236 /// [`memory_order_relaxed`]: https://en.cppreference.com/w/cpp/atomic/memory_order#Relaxed_ordering
237237 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -246,7 +246,7 @@ pub enum Ordering {
246246 ///
247247 /// This ordering is only applicable for operations that can perform a store.
248248 ///
249- /// Corresponds to [`memory_order_release`] in C++.
249+ /// Corresponds to [`memory_order_release`] in C++20 .
250250 ///
251251 /// [`Release`]: #Release
252252 /// [`Acquire`]: #Acquire
@@ -264,7 +264,7 @@ pub enum Ordering {
264264 ///
265265 /// This ordering is only applicable for operations that can perform a load.
266266 ///
267- /// Corresponds to [`memory_order_acquire`] in C++.
267+ /// Corresponds to [`memory_order_acquire`] in C++20 .
268268 ///
269269 /// [`Acquire`]: #Acquire
270270 /// [`Release`]: #Release
@@ -281,7 +281,7 @@ pub enum Ordering {
281281 ///
282282 /// This ordering is only applicable for operations that combine both loads and stores.
283283 ///
284- /// Corresponds to [`memory_order_acq_rel`] in C++.
284+ /// Corresponds to [`memory_order_acq_rel`] in C++20 .
285285 ///
286286 /// [`memory_order_acq_rel`]: https://en.cppreference.com/w/cpp/atomic/memory_order#Release-Acquire_ordering
287287 /// [`Acquire`]: #Acquire
@@ -293,7 +293,7 @@ pub enum Ordering {
293293 /// operations, respectively) with the additional guarantee that all threads see all
294294 /// sequentially consistent operations in the same order.
295295 ///
296- /// Corresponds to [`memory_order_seq_cst`] in C++.
296+ /// Corresponds to [`memory_order_seq_cst`] in C++20 .
297297 ///
298298 /// [`memory_order_seq_cst`]: https://en.cppreference.com/w/cpp/atomic/memory_order#Sequentially-consistent_ordering
299299 /// [`Acquire`]: #Acquire
0 commit comments