We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d9699fa + 0cb7e46 commit 1452021Copy full SHA for 1452021
src/type-layout.md
@@ -70,9 +70,9 @@ at least equal to the size and alignment of a pointer.
70
71
## Array Layout
72
73
-Arrays are laid out so that the `nth` element of the array is offset from the
74
-start of the array by `n * the size of the type` bytes. An array of `[T; n]`
75
-has a size of `size_of::<T>() * n` and the same alignment of `T`.
+An array of `[T; N]` has a size of `size_of::<T>() * N` and the same alignment
+of `T`. Arrays are laid out so that the zero-based `nth` element of the array
+is offset from the start of the array by `n * size_of::<T>()` bytes.
76
77
## Slice Layout
78
0 commit comments