Skip to content

Commit 01e9816

Browse files
docs: fix typo gather -> scatter
Co-authored-by: Jacob Lifshay <programmerjake@gmail.com>
1 parent 6d23662 commit 01e9816

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
@@ -218,7 +218,7 @@ where
218218
/// // If this mask was used to scatter, it would be unsound. Let's fix that.
219219
/// let mask = mask & idxs.lanes_lt(Simd::splat(vec.len()));
220220
///
221-
/// // We have masked the OOB lane, so it's safe to gather now.
221+
/// // We have masked the OOB lane, so it's safe to scatter now.
222222
/// unsafe { vals.scatter_select_unchecked(&mut vec, mask, idxs); }
223223
/// // index 0's second write is masked, thus was omitted.
224224
/// assert_eq!(vec, vec![-41, 11, 12, 82, 14, 15, 16, 17, 18]);

0 commit comments

Comments
 (0)