Skip to content

Commit 9bcd30c

Browse files
authored
Merge pull request #2339 from Wilfred/patch-1
Add missing punctuation
2 parents a6102f9 + 0002ca2 commit 9bcd30c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/items/unions.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ r[items.union.fields.read]
7777
Reading a union field reads the bits of the union at the field's type.
7878

7979
r[items.union.fields.offset]
80-
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
80+
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.
8181

8282
r[items.union.fields.validity]
8383
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` 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.

0 commit comments

Comments
 (0)