Skip to content

Commit

Permalink
Hide some blank lines in code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjasper committed Jun 19, 2017
1 parent 5381a94 commit 5694436
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ struct types, except that it must specify exactly one field:

```rust
# union MyUnion { f1: u32, f2: f32 }

#
let u = MyUnion { f1: 1 };
```

Expand All @@ -612,7 +612,7 @@ union fields have to be placed in `unsafe` blocks.
```rust
# union MyUnion { f1: u32, f2: f32 }
# let u = MyUnion { f1: 1 };

#
unsafe {
let f = u.f1;
}
Expand All @@ -624,7 +624,7 @@ so these writes don't have to be placed in `unsafe` blocks
```rust
# union MyUnion { f1: u32, f2: f32 }
# let mut u = MyUnion { f1: 1 };

#
u.f1 = 2;
```

Expand All @@ -639,7 +639,7 @@ to be placed in `unsafe` blocks as well.

```rust
# union MyUnion { f1: u32, f2: f32 }

#
fn f(u: MyUnion) {
unsafe {
match u {
Expand Down

0 comments on commit 5694436

Please sign in to comment.