Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix typos #24654

Merged
merged 1 commit into from
Apr 22, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/doc/trpl/casting-between-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let b = a as u32; // four eights makes 32

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

# `transmute`
Expand All @@ -59,7 +59,7 @@ unsafe {
}
```

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