Skip to content

Commit 446b0ce

Browse files
Improve generic type name
Co-authored-by: Jubilee <[email protected]>
1 parent aa7118e commit 446b0ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/intrinsics/simd.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -194,20 +194,20 @@ extern "platform-intrinsic" {
194194
///
195195
/// For each pointer in `ptr`, if the corresponding value in `mask` is `!0`, read the pointer.
196196
/// Otherwise if the corresponding value in `mask` is `0`, return the corresponding value from
197-
/// `val`.
197+
/// `defaults`.
198198
///
199199
/// `T` must be a vector.
200200
///
201201
/// `U` must be a vector of pointers to the element type of `T`, with the same length as `T`.
202202
///
203-
/// `V` must be a vector of integers with the same length as `T` (but any element size).
203+
/// `M` must be a vector of integers with the same length as `T` (but any element size).
204204
///
205205
/// # Safety
206206
/// Unmasked values in `T` must be readable as if by `<ptr>::read` (e.g. aligned to the element
207207
/// type).
208208
///
209209
/// `mask` must only contain `0` or `!0` values.
210-
pub fn simd_gather<T, U, V>(val: T, ptr: U, mask: V) -> T;
210+
pub fn simd_gather<T, U, M>(val: T, ptr: U, mask: M) -> T;
211211

212212
/// Write to a vector of pointers.
213213
///

0 commit comments

Comments
 (0)