about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCaleb Zulawski <caleb.zulawski@gmail.com>2023-10-20 19:15:22 -0400
committerCaleb Zulawski <caleb.zulawski@gmail.com>2023-10-20 20:10:40 -0400
commit6e0de1983ca1861ca900c9a1b63b7b62e8babd02 (patch)
treef8ff33786509cdaa3480f899e1ea84a5a0276984
parent7a7faf6cc6849a48a4ba2c82a64be3855e1460fa (diff)
downloadrust-6e0de1983ca1861ca900c9a1b63b7b62e8babd02.tar.gz
rust-6e0de1983ca1861ca900c9a1b63b7b62e8babd02.zip
Fix variable and comment
-rw-r--r--crates/core_simd/src/swizzle.rs6
1 files changed, 3 insertions, 3 deletions
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<const N: usize> {
         }
     }
 
-    /// 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<T, const M: usize>(vector: Mask<T, M>) -> Mask<T, N>
+    fn swizzle_mask<T, const M: usize>(mask: Mask<T, M>) -> Mask<T, N>
     where
         T: MaskElement,
         LaneCount<N>: SupportedLaneCount,
         LaneCount<M>: 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`.