Skip to content

Commit f4ad981

Browse files
committed
the layout of vectors is not the same as that of arrays
1 parent 5d84a05 commit f4ad981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/src/representation/vectors.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ assert!(align_of::<Vector<T, N>>() >= align_of::<T>());
3535
That is, two distinct `repr(simd)` vector types that have the same `T` and the
3636
same `N` have the same size and alignment.
3737

38-
The layout of elements within a vector is the same as that of `[T; N]` such that
39-
there is a a 1:1 correspondence between the indices of the vector and arrays:
38+
Vector elements are laid out in source field order, enabling random access to
39+
vector elements by reinterpreting the vector as an array:
4040

4141
```rust
4242
union U {

0 commit comments

Comments
 (0)