Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 6e0de19

Browse files
committed
Fix variable and comment
1 parent 7a7faf6 commit 6e0de19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/core_simd/src/swizzle.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,20 +146,20 @@ pub trait Swizzle<const N: usize> {
146146
}
147147
}
148148

149-
/// Create a new mask from the elements of `first` and `second`.
149+
/// Create a new mask from the elements of `mask`.
150150
///
151151
/// Element `i` of the output is `concat[Self::INDEX[i]]`, where `concat` is the concatenation of
152152
/// `first` and `second`.
153153
#[inline]
154154
#[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>
156156
where
157157
T: MaskElement,
158158
LaneCount<N>: SupportedLaneCount,
159159
LaneCount<M>: SupportedLaneCount,
160160
{
161161
// 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())) }
163163
}
164164

165165
/// Create a new mask from the elements of `first` and `second`.

0 commit comments

Comments
 (0)