Skip to content

Commit 251f8d3

Browse files
committed
rollup merge of rust-lang#24654: mdinger/patch-2
This just fixes some comments made on rust-lang#24632 . The second I think is better unless @steveklabnik actually meant something else.
2 parents 59171f8 + dc59669 commit 251f8d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/trpl/casting-between-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ let b = a as u32; // four eights makes 32
3333

3434
It’s a ‘non-scalar cast’ because we have multiple values here: the four
3535
elements of the array. These kinds of casts are very dangerous, because they
36-
make assumptions about the way that multiple underlying strucutres are
36+
make assumptions about the way that multiple underlying structures are
3737
implemented. For this, we need something more dangerous.
3838

3939
# `transmute`
@@ -59,7 +59,7 @@ unsafe {
5959
}
6060
```
6161

62-
We have to wrap the operation in an `unsafe` block, but this will compile
62+
We have to wrap the operation in an `unsafe` block for this to compile
6363
successfully. Technically, only the `mem::transmute` call itself needs to be in
6464
the block, but it's nice in this case to enclose everything related, so you
6565
know where to look. In this case, the details about `a` are also important, and

0 commit comments

Comments
 (0)