Skip to content

Commit ed8092e

Browse files
committed
Clarify comment
1 parent 0f6399b commit ed8092e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_simd/src/vector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ where
125125
/// assert_eq!(v.as_array(), &[8, 8, 8, 8]);
126126
/// ```
127127
pub fn splat(value: T) -> Self {
128-
// This is a workaround for `[value; LANES]` generating a loop:
128+
// This is preferred over `[value; LANES]`, since it's explicitly a splat:
129129
// https://github.com/rust-lang/rust/issues/97804
130130
struct Splat;
131131
impl<const LANES: usize> Swizzle<1, LANES> for Splat {

0 commit comments

Comments
 (0)