Clarify comment
This commit is contained in:
parent
0f6399b166
commit
ed8092e96b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue