From ed8092e96bb5ad10f7242589f2c263746adafa35 Mon Sep 17 00:00:00 2001 From: Caleb Zulawski Date: Tue, 21 Jun 2022 20:52:43 -0400 Subject: [PATCH] Clarify comment --- crates/core_simd/src/vector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core_simd/src/vector.rs b/crates/core_simd/src/vector.rs index c6f588672b4c..761151ab8b28 100644 --- a/crates/core_simd/src/vector.rs +++ b/crates/core_simd/src/vector.rs @@ -125,7 +125,7 @@ where /// assert_eq!(v.as_array(), &[8, 8, 8, 8]); /// ``` pub fn splat(value: T) -> Self { - // This is a workaround for `[value; LANES]` generating a loop: + // This is preferred over `[value; LANES]`, since it's explicitly a splat: // https://github.com/rust-lang/rust/issues/97804 struct Splat; impl Swizzle<1, LANES> for Splat {