From e185cb946524b49c9c153e442d71a67dd129d3b8 Mon Sep 17 00:00:00 2001 From: Alex Povel Date: Mon, 6 Mar 2023 19:51:08 +0100 Subject: [PATCH] fix: Typo/reference --- 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 325b22717..0b989ccc1 100644 --- a/src/items/unions.md +++ b/src/items/unions.md @@ -55,7 +55,7 @@ let f = unsafe { u.f1 }; ## Reading and writing union fields Unions have no notion of an "active field". Instead, every union access just -interprets the storage at the type of the field used for the access. Reading a +interprets the storage as the type of the field used for the access. Reading a union field reads the bits of the union at the field's type. Fields might have a 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