Skip to content

Commit 8f9de1c

Browse files
committed
Fix typo
1 parent fa925d7 commit 8f9de1c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reference/src/layout/unions.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ assert_eq!(size_of::<U>(), 1);
8787
# }
8888
```
8989

90-
The field does, however, participate in the layout computation of the union, and can raise its alignment requirement, which in turn can introduce trailing padding. For example:
90+
The field does, however, participate in the layout computation of the union, and
91+
can raise its alignment requirement, which in turn can introduce trailing
92+
padding. For example:
9193

9294
```rust
9395
# use std::mem::{size_of, align_of};
@@ -102,7 +104,7 @@ assert_eq!(align_of::<U>(), 2);
102104
// This introduces trailing padding, raising the union size to 2
103105
assert_eq!(size_of::<U>(), 2);
104106
# }
105-
``**
107+
```
106108

107109
This handling of zero-sized types is equivalent to the handling of zero-sized
108110
types in struct fields, and matches the behavior of GCC and Clang for unions in

0 commit comments

Comments
 (0)