We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5325cde commit 2159764Copy full SHA for 2159764
reference/src/layout/arrays-and-slices.md
@@ -76,8 +76,8 @@ struct A(u16, u8);
76
type B = [A; 4];
77
```
78
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
+In the current Rust implementation, `A` has an alignment of `2` and a size of `4`,
+and `B` has a size of `16`, such that `B` contains four `A`s that are contiguously
81
laid in memory.
82
83
However, a future Rust implementation could implement a layout optimization that
0 commit comments