This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -146,20 +146,20 @@ pub trait Swizzle<const N: usize> {
146
146
}
147
147
}
148
148
149
- /// Create a new mask from the elements of `first` and `second `.
149
+ /// Create a new mask from the elements of `mask `.
150
150
///
151
151
/// Element `i` of the output is `concat[Self::INDEX[i]]`, where `concat` is the concatenation of
152
152
/// `first` and `second`.
153
153
#[ inline]
154
154
#[ must_use = "method returns a new mask and does not mutate the original inputs" ]
155
- fn swizzle_mask < T , const M : usize > ( vector : Mask < T , M > ) -> Mask < T , N >
155
+ fn swizzle_mask < T , const M : usize > ( mask : Mask < T , M > ) -> Mask < T , N >
156
156
where
157
157
T : MaskElement ,
158
158
LaneCount < N > : SupportedLaneCount ,
159
159
LaneCount < M > : SupportedLaneCount ,
160
160
{
161
161
// SAFETY: all elements of this mask come from another mask
162
- unsafe { Mask :: from_int_unchecked ( Self :: swizzle ( vector . to_int ( ) ) ) }
162
+ unsafe { Mask :: from_int_unchecked ( Self :: swizzle ( mask . to_int ( ) ) ) }
163
163
}
164
164
165
165
/// Create a new mask from the elements of `first` and `second`.
You can’t perform that action at this time.
0 commit comments