File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ impl AtomicBool {
289
289
/// Stores a value into the `bool` if the current value is the same as the `current` value.
290
290
///
291
291
/// The return value is a result indicating whether the new value was written and containing
292
- /// the previous value. On success this value is guaranteed to be equal to `new `.
292
+ /// the previous value. On success this value is guaranteed to be equal to `current `.
293
293
///
294
294
/// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this
295
295
/// operation. The first describes the required ordering if the operation succeeds while the
@@ -633,7 +633,7 @@ impl<T> AtomicPtr<T> {
633
633
/// Stores a value into the pointer if the current value is the same as the `current` value.
634
634
///
635
635
/// The return value is a result indicating whether the new value was written and containing
636
- /// the previous value. On success this value is guaranteed to be equal to `new `.
636
+ /// the previous value. On success this value is guaranteed to be equal to `current `.
637
637
///
638
638
/// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this
639
639
/// operation. The first describes the required ordering if the operation succeeds while the
@@ -886,7 +886,7 @@ macro_rules! atomic_int {
886
886
///
887
887
/// The return value is a result indicating whether the new value was written and
888
888
/// containing the previous value. On success this value is guaranteed to be equal to
889
- /// `new `.
889
+ /// `current `.
890
890
///
891
891
/// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of
892
892
/// this operation. The first describes the required ordering if the operation succeeds
You can’t perform that action at this time.
0 commit comments