Skip to content

Commit f1995cd

Browse files
committed
no more double space
1 parent 3793103 commit f1995cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/items/unions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ let u = MyUnion { f1: 1 };
3030
```
3131

3232
The expression above creates a value of type `MyUnion` and initializes the
33-
storage using field `f1`. The union can be accessed using the same syntax as
33+
storage using field `f1`. The union can be accessed using the same syntax as
3434
struct fields:
3535

3636
```rust,ignore
3737
let f = u.f1;
3838
```
3939

40-
Unions have no notion of an "active field". Instead, every union access just
41-
interprets the storage at the type of the field used for the access. Reading a
40+
Unions have no notion of an "active field". Instead, every union access just
41+
interprets the storage at the type of the field used for the access. Reading a
4242
union field is equivalent to a [`transmute`]: The data in the union, no matter
43-
how it was stored there, is transmuted to the type of the field. Just like with
43+
how it was stored there, is transmuted to the type of the field Just like with
4444
any other transmute, it is the programmer's responsibility to make sure that the
45-
data is valid for the field type. Failing to do so results in undefined
45+
data is valid for the field type. Failing to do so results in undefined
4646
behavior (for example, reading the value `3` at type `bool` is undefined
47-
behavior). For this reason, all reads of union fields have to be placed in
47+
behavior). For this reason, all reads of union fields have to be placed in
4848
`unsafe` blocks:
4949

5050
```rust

0 commit comments

Comments
 (0)