@@ -1554,7 +1554,7 @@ impl<T> AtomicPtr<T> {
1554
1554
/// Offsets the pointer's address by adding `val` *bytes*, returning the
1555
1555
/// previous pointer.
1556
1556
///
1557
- /// This is equivalent to using [`wrapping_add`] and [`cast `] to atomically
1557
+ /// This is equivalent to using [`wrapping_byte_add `] to atomically
1558
1558
/// perform `ptr = ptr.wrapping_byte_add(val)`.
1559
1559
///
1560
1560
/// `fetch_byte_add` takes an [`Ordering`] argument which describes the
@@ -1565,8 +1565,7 @@ impl<T> AtomicPtr<T> {
1565
1565
/// **Note**: This method is only available on platforms that support atomic
1566
1566
/// operations on [`AtomicPtr`].
1567
1567
///
1568
- /// [`wrapping_add`]: pointer::wrapping_add
1569
- /// [`cast`]: pointer::cast
1568
+ /// [`wrapping_byte_add`]: pointer::wrapping_byte_add
1570
1569
///
1571
1570
/// # Examples
1572
1571
///
@@ -1591,7 +1590,7 @@ impl<T> AtomicPtr<T> {
1591
1590
/// Offsets the pointer's address by subtracting `val` *bytes*, returning the
1592
1591
/// previous pointer.
1593
1592
///
1594
- /// This is equivalent to using [`wrapping_sub`] and [`cast `] to atomically
1593
+ /// This is equivalent to using [`wrapping_byte_sub `] to atomically
1595
1594
/// perform `ptr = ptr.wrapping_byte_sub(val)`.
1596
1595
///
1597
1596
/// `fetch_byte_sub` takes an [`Ordering`] argument which describes the
@@ -1602,8 +1601,7 @@ impl<T> AtomicPtr<T> {
1602
1601
/// **Note**: This method is only available on platforms that support atomic
1603
1602
/// operations on [`AtomicPtr`].
1604
1603
///
1605
- /// [`wrapping_sub`]: pointer::wrapping_sub
1606
- /// [`cast`]: pointer::cast
1604
+ /// [`wrapping_byte_sub`]: pointer::wrapping_byte_sub
1607
1605
///
1608
1606
/// # Examples
1609
1607
///
0 commit comments