diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-21 15:23:12 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-21 15:23:12 -0700 |
| commit | 251f8d3fbd5b63d003f35dd1a82fc820f4af1ccd (patch) | |
| tree | 9635519ac9f7a153f33786c3294ffdae9f80e08c /src | |
| parent | 59171f8ec8dce11329ed9bfaa73d5bbcf88f9a09 (diff) | |
| parent | dc596695c9b44870226148a8ebb15fbedc0f16f1 (diff) | |
| download | rust-251f8d3fbd5b63d003f35dd1a82fc820f4af1ccd.tar.gz rust-251f8d3fbd5b63d003f35dd1a82fc820f4af1ccd.zip | |
rollup merge of #24654: mdinger/patch-2
This just fixes some comments made on https://github.com/rust-lang/rust/pull/24632 . The second I think is better unless @steveklabnik actually meant something else.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/trpl/casting-between-types.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/trpl/casting-between-types.md b/src/doc/trpl/casting-between-types.md index 90731b64a38..f0c673b561a 100644 --- a/src/doc/trpl/casting-between-types.md +++ b/src/doc/trpl/casting-between-types.md @@ -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` @@ -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 |
