Skip to content

Commit dc59669

Browse files
committed
Fix typos
1 parent 21c48c3 commit dc59669

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)