Skip to content

Commit ccf4763

Browse files
authored
Clarify doc comment on from_slice/store_slice (#182)
Following up on #181 (comment)
1 parent 4d915a4 commit ccf4763

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fearless_simd/src/generated/simd_trait.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2593,11 +2593,11 @@ pub trait SimdBase<S: Simd>:
25932593
fn as_mut_slice(&mut self) -> &mut [Self::Element];
25942594
#[doc = r" Create a SIMD vector from a slice."]
25952595
#[doc = r""]
2596-
#[doc = r" The slice must be the proper width."]
2596+
#[doc = r" The slice must be exactly the size of the SIMD vector."]
25972597
fn from_slice(simd: S, slice: &[Self::Element]) -> Self;
25982598
#[doc = r" Store a SIMD vector into a slice."]
25992599
#[doc = r""]
2600-
#[doc = r" The slice must be the proper width."]
2600+
#[doc = r" The slice must be exactly the size of the SIMD vector."]
26012601
fn store_slice(&self, slice: &mut [Self::Element]);
26022602
#[doc = r" Create a SIMD vector with all elements set to the given value."]
26032603
fn splat(simd: S, val: Self::Element) -> Self;

fearless_simd_gen/src/mk_simd_trait.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ fn mk_simd_base() -> TokenStream {
165165
fn as_mut_slice(&mut self) -> &mut [Self::Element];
166166
/// Create a SIMD vector from a slice.
167167
///
168-
/// The slice must be the proper width.
168+
/// The slice must be exactly the size of the SIMD vector.
169169
fn from_slice(simd: S, slice: &[Self::Element]) -> Self;
170170
/// Store a SIMD vector into a slice.
171171
///
172-
/// The slice must be the proper width.
172+
/// The slice must be exactly the size of the SIMD vector.
173173
fn store_slice(&self, slice: &mut [Self::Element]);
174174
/// Create a SIMD vector with all elements set to the given value.
175175
fn splat(simd: S, val: Self::Element) -> Self;

0 commit comments

Comments
 (0)