From 945a2bdba17280214f0559eb87078c84dacbbdc0 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Thu, 9 Mar 2023 07:41:45 +0200 Subject: [PATCH] fix typo --- src/items/unions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items/unions.md b/src/items/unions.md index 0b989ccc1..3c6c83d50 100644 --- a/src/items/unions.md +++ b/src/items/unions.md @@ -61,7 +61,7 @@ non-zero offset (except when [the C representation] is used); in that case the bits starting at the offset of the fields are read. It is the programmer's responsibility to make sure that the data is valid at the field's type. Failing to do so results in [undefined behavior]. For example, reading the value `3` -through of a field of the [boolean type] is undefined behavior. Effectively, +from a field of the [boolean type] is undefined behavior. Effectively, writing to and then reading from a union with [the C representation] is analogous to a [`transmute`] from the type used for writing to the type used for reading.