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 b385179 commit 0f03acdCopy full SHA for 0f03acd
reference/src/layout/unions.md
@@ -64,7 +64,7 @@ assert_eq!(size_of::<U>(), 2);
64
#### Zero-sized fields
65
66
If a `#[repr(C)]` union contains a field of zero-size, that field does not
67
-occupy space in the union. For example:
+occupy space in Rust unions (as opposed to, e.g., in C++). For example:
68
69
```rust
70
# use std::mem::{size_of, align_of};
0 commit comments