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 8f9de1c commit 8b6663bCopy full SHA for 8b6663b
reference/src/layout/unions.md
@@ -57,7 +57,7 @@ assert_eq!(size_of::<U>(), 2);
57
# }
58
``**
59
60
-**Note**: there is no room between fields for padding, so `repr(C)` unions can
+**Note**: Fields are overlapped instead of laid out sequentially, so unlike structs there is no "between the fields" that could be filled with padding.
61
only have trailing padding.
62
63
The bit `i` of a `repr(C)` union is a padding bit if the bit `i` of each of its
0 commit comments