/// Stores a value into the bool if the current value is the same as the expected value.
///
- /// If the return value is equal to `old` then the value was updated.
+ /// The return value is always the previous value. If it is equal to `old`, then the value was
+ /// updated.
///
/// `swap` also takes an `Ordering` argument which describes the memory ordering of this
/// operation.
/// Stores a value into the isize if the current value is the same as the expected value.
///
- /// If the return value is equal to `old` then the value was updated.
+ /// The return value is always the previous value. If it is equal to `old`, then the value was
+ /// updated.
///
/// `compare_and_swap` also takes an `Ordering` argument which describes the memory ordering of
/// this operation.
/// Stores a value into the usize if the current value is the same as the expected value.
///
- /// If the return value is equal to `old` then the value was updated.
+ /// The return value is always the previous value. If it is equal to `old`, then the value was
+ /// updated.
///
/// `compare_and_swap` also takes an `Ordering` argument which describes the memory ordering of
/// this operation.
/// Stores a value into the pointer if the current value is the same as the expected value.
///
- /// If the return value is equal to `old` then the value was updated.
+ /// The return value is always the previous value. If it is equal to `old`, then the value was
+ /// updated.
///
/// `compare_and_swap` also takes an `Ordering` argument which describes the memory ordering of
/// this operation.