Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 77c3d65

Browse files
committedJan 9, 2024
fixup: correct the docs to use wrapping_offset()
1 parent c1a1bbf commit 77c3d65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎library/core/src/intrinsics/simd.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ extern "platform-intrinsic" {
249249
///
250250
/// For each element, if the corresponding value in `mask` is `!0`, read the corresponding
251251
/// pointer offset from `ptr`.
252-
/// The first element is loaded from `ptr`, the second from `ptr.offset(1)` and so on.
252+
/// The first element is loaded from `ptr`, the second from `ptr.wrapping_offset(1)` and so on.
253253
/// Otherwise if the corresponding value in `mask` is `0`, return the corresponding value from
254254
/// `val`.
255255
///
@@ -271,7 +271,7 @@ extern "platform-intrinsic" {
271271
///
272272
/// For each element, if the corresponding value in `mask` is `!0`, write the corresponding
273273
/// value in `val` to the pointer offset from `ptr`.
274-
/// The first element is written to `ptr`, the second to `ptr.offset(1)` and so on.
274+
/// The first element is written to `ptr`, the second to `ptr.wrapping_offset(1)` and so on.
275275
/// Otherwise if the corresponding value in `mask` is `0`, do nothing.
276276
///
277277
/// # Safety

0 commit comments

Comments
 (0)