diff --git a/crates/core_simd/src/swizzle.rs b/crates/core_simd/src/swizzle.rs index 48aebba91fd..ed4bd72b9a5 100644 --- a/crates/core_simd/src/swizzle.rs +++ b/crates/core_simd/src/swizzle.rs @@ -146,20 +146,20 @@ pub trait Swizzle { } } - /// Create a new mask from the elements of `first` and `second`. + /// Create a new mask from the elements of `mask`. /// /// Element `i` of the output is `concat[Self::INDEX[i]]`, where `concat` is the concatenation of /// `first` and `second`. #[inline] #[must_use = "method returns a new mask and does not mutate the original inputs"] - fn swizzle_mask(vector: Mask) -> Mask + fn swizzle_mask(mask: Mask) -> Mask where T: MaskElement, LaneCount: SupportedLaneCount, LaneCount: SupportedLaneCount, { // SAFETY: all elements of this mask come from another mask - unsafe { Mask::from_int_unchecked(Self::swizzle(vector.to_int())) } + unsafe { Mask::from_int_unchecked(Self::swizzle(mask.to_int())) } } /// Create a new mask from the elements of `first` and `second`.