Skip to content

Commit 224303d

Browse files
committed
typo
1 parent 20922ac commit 224303d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/unions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let f = u.f1;
4040
Unions have no notion of an "active field". Instead, every union access just
4141
interprets the storage at the type of the field used for the access. Reading a
4242
union field is equivalent to a [`transmute`]: The data in the union, no matter
43-
how it was stored there, is transmuted to the type if the field. Reading data
43+
how it was stored there, is transmuted to the type of the field. Reading data
4444
at a bad type results in undefined behavior (for example, reading the value `3`
4545
at type `bool`). For this reason, all reads of union fields have to be placed
4646
in `unsafe` blocks:

0 commit comments

Comments
 (0)