Skip to content

Commit 93137b0

Browse files
authored
Merge pull request #1338 from alexpovel/patch-1
fix: Typo/reference
2 parents 33d68e1 + e185cb9 commit 93137b0

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
@@ -55,7 +55,7 @@ let f = unsafe { u.f1 };
5555
## Reading and writing union fields
5656

5757
Unions have no notion of an "active field". Instead, every union access just
58-
interprets the storage at the type of the field used for the access. Reading a
58+
interprets the storage as the type of the field used for the access. Reading a
5959
union field reads the bits of the union at the field's type. Fields might have a
6060
non-zero offset (except when [the C representation] is used); in that case the
6161
bits starting at the offset of the fields are read. It is the programmer's

0 commit comments

Comments
 (0)