]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #24654: mdinger/patch-2
authorAlex Crichton <alex@alexcrichton.com>
Tue, 21 Apr 2015 22:23:12 +0000 (15:23 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 21 Apr 2015 22:23:12 +0000 (15:23 -0700)
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.

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

index 90731b64a38dc5185ddba8b316a40fc7e859fac1..f0c673b561a0ee2f662fd6f0a67b02c8a7eebff2 100644 (file)
@@ -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