Skip to content

Commit 078cb58

Browse files
Apply suggestions from code review
Co-authored-by: Jacob Lifshay <[email protected]>
1 parent a79718f commit 078cb58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/core_simd/src/elements/const_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub trait SimdConstPtr: Copy + Sealed {
6161

6262
/// Calculates the offset from a pointer using wrapping arithmetic.
6363
///
64-
/// Equivalent to calling [`pointer::wrapping_add`] on each lane.
64+
/// Equivalent to calling [`pointer::wrapping_sub`] on each lane.
6565
fn wrapping_sub(self, count: Self::Usize) -> Self;
6666
}
6767

crates/core_simd/src/elements/mut_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub trait SimdMutPtr: Copy + Sealed {
5858

5959
/// Calculates the offset from a pointer using wrapping arithmetic.
6060
///
61-
/// Equivalent to calling [`pointer::wrapping_add`] on each lane.
61+
/// Equivalent to calling [`pointer::wrapping_sub`] on each lane.
6262
fn wrapping_sub(self, count: Self::Usize) -> Self;
6363
}
6464

0 commit comments

Comments
 (0)