diff options
| author | Caleb Zulawski <caleb.zulawski@gmail.com> | 2022-06-21 20:52:43 -0400 |
|---|---|---|
| committer | Caleb Zulawski <caleb.zulawski@gmail.com> | 2022-06-21 20:52:43 -0400 |
| commit | ed8092e96bb5ad10f7242589f2c263746adafa35 (patch) | |
| tree | f2e9dd84c250beb111ec5f8e71a1ed0dc4a09e16 | |
| parent | 0f6399b166d8432650de848f854a82a9abe88e25 (diff) | |
| download | rust-ed8092e96bb5ad10f7242589f2c263746adafa35.tar.gz rust-ed8092e96bb5ad10f7242589f2c263746adafa35.zip | |
Clarify comment
| -rw-r--r-- | crates/core_simd/src/vector.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/core_simd/src/vector.rs b/crates/core_simd/src/vector.rs index c6f588672b4..761151ab8b2 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<const LANES: usize> Swizzle<1, LANES> for Splat { |
