Skip to content

Commit 7276ea7

Browse files
committed
s/equivalent/analogous/
1 parent 9ecb58d commit 7276ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/unions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ union field reads the bits of the union at the field's type. It is the
4343
programmer's responsibility to make sure that the data is valid at that
4444
type. Failing to do so results in undefined behavior. For example, reading the
4545
value `3` at type `bool` is undefined behavior. Effectively, writing to and then
46-
reading from a union is equivalent to a [`transmute`] from the type used for
46+
reading from a union is analogous to a [`transmute`] from the type used for
4747
writing to the type used for reading.
4848

4949
Consequently, all reads of union fields have to be placed in `unsafe` blocks:

0 commit comments

Comments
 (0)