Skip to content

Commit 1d3a35a

Browse files
committed
Define the alignment of char in type-layout chapter
1 parent 91326de commit 1d3a35a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/type-layout.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ In particular, `i128` and `u128` are often aligned to 4 or 8 bytes even though
7676
their size is 16, and on many 32-bit platforms, `i64`, `u64`, and `f64` are only
7777
aligned to 4 bytes, not 8.
7878

79+
r[layout.primitive.align-char]
80+
The alignment of `char` is the same as the alignment of `u32`.
81+
7982
## Pointers and References Layout
8083

8184
r[layout.pointer]

0 commit comments

Comments
 (0)