diff --git a/fearless_simd/src/generated/simd_trait.rs b/fearless_simd/src/generated/simd_trait.rs index b0732adf..9dafeaf9 100644 --- a/fearless_simd/src/generated/simd_trait.rs +++ b/fearless_simd/src/generated/simd_trait.rs @@ -2593,11 +2593,11 @@ pub trait SimdBase: fn as_mut_slice(&mut self) -> &mut [Self::Element]; #[doc = r" Create a SIMD vector from a slice."] #[doc = r""] - #[doc = r" The slice must be the proper width."] + #[doc = r" The slice must be exactly the size of the SIMD vector."] fn from_slice(simd: S, slice: &[Self::Element]) -> Self; #[doc = r" Store a SIMD vector into a slice."] #[doc = r""] - #[doc = r" The slice must be the proper width."] + #[doc = r" The slice must be exactly the size of the SIMD vector."] fn store_slice(&self, slice: &mut [Self::Element]); #[doc = r" Create a SIMD vector with all elements set to the given value."] fn splat(simd: S, val: Self::Element) -> Self; diff --git a/fearless_simd_gen/src/mk_simd_trait.rs b/fearless_simd_gen/src/mk_simd_trait.rs index bd916e76..d17ebc83 100644 --- a/fearless_simd_gen/src/mk_simd_trait.rs +++ b/fearless_simd_gen/src/mk_simd_trait.rs @@ -165,11 +165,11 @@ fn mk_simd_base() -> TokenStream { fn as_mut_slice(&mut self) -> &mut [Self::Element]; /// Create a SIMD vector from a slice. /// - /// The slice must be the proper width. + /// The slice must be exactly the size of the SIMD vector. fn from_slice(simd: S, slice: &[Self::Element]) -> Self; /// Store a SIMD vector into a slice. /// - /// The slice must be the proper width. + /// The slice must be exactly the size of the SIMD vector. fn store_slice(&self, slice: &mut [Self::Element]); /// Create a SIMD vector with all elements set to the given value. fn splat(simd: S, val: Self::Element) -> Self;