Skip to content

Commit 2159764

Browse files
Disambiguate wording on stride
1 parent 5325cde commit 2159764

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/src/layout/arrays-and-slices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ struct A(u16, u8);
7676
type B = [A; 4];
7777
```
7878

79-
In the current Rust implementation, `A` has an alignment and a size of `4`, and
80-
`B` has a size of `16`, such that `B` contains four `A`s that are contiguously
79+
In the current Rust implementation, `A` has an alignment of `2` and a size of `4`,
80+
and `B` has a size of `16`, such that `B` contains four `A`s that are contiguously
8181
laid in memory.
8282

8383
However, a future Rust implementation could implement a layout optimization that

0 commit comments

Comments
 (0)