Skip to content

Commit f85beb5

Browse files
committed
typos
1 parent f1995cd commit f85beb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/items/unions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ 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 of the field Just like with
43+
how it was stored there, is transmuted to the type of the field. Just like with
4444
any other transmute, it is the programmer's responsibility to make sure that the
45-
data is valid for the field type. Failing to do so results in undefined
45+
data is valid at the field's type. Failing to do so results in undefined
4646
behavior (for example, reading the value `3` at type `bool` is undefined
4747
behavior). For this reason, all reads of union fields have to be placed in
4848
`unsafe` blocks:

0 commit comments

Comments
 (0)