Skip to content

Commit e245baf

Browse files
Apply suggestions from code review
Co-authored-by: Ralf Jung <[email protected]>
1 parent 71a5698 commit e245baf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/core/src/intrinsics/simd.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ extern "platform-intrinsic" {
199199
///
200200
/// `V` must be a vector of integers with the same length as `T` (but any element size).
201201
///
202-
/// `idx` must be a constant.
202+
/// `idx` must be a constant: either naming a constant item, or an inline
203+
/// `const {}` expression.
203204
///
204205
/// For each pointer in `ptr`, if the corresponding value in `mask` is `!0`, read the pointer.
205206
/// Otherwise if the corresponding value in `mask` is `0`, return the corresponding value from
@@ -333,7 +334,7 @@ extern "platform-intrinsic" {
333334
/// * On little endian, the least significant bit corresponds to the first vector element.
334335
/// * On big endian, the least significant bit corresponds to the last vector element.
335336
///
336-
/// For example, `[-1, 0, -1, -1]` packs to `0b1101` on little endian and `0b1011` on big
337+
/// For example, `[!0, 0, !0, !0]` packs to `0b1101` on little endian and `0b1011` on big
337338
/// endian.
338339
///
339340
/// # Safety

0 commit comments

Comments
 (0)