Skip to content

Commit e5af280

Browse files
committed
Remove duplicate note
1 parent 34592df commit e5af280

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: reference/src/layout/unions.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ assert_eq!(size_of::<U>(), 2);
6464
#### Zero-sized fields
6565

6666
If a `#[repr(C)]` union contains a field of zero-size, that field does not
67-
occupy space in Rust unions, e.g., as opposed to _empty_ types in C++ unions,
68-
which might occupy space depending on how they are used. For example:
67+
occupy space in Rust unions. For example:
6968

7069
```rust
7170
# use std::mem::{size_of, align_of};

0 commit comments

Comments
 (0)