File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ let b = a as u32; // four eights makes 32
3333
3434It’s a ‘non-scalar cast’ because we have multiple values here: the four
3535elements 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
3737implemented. 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
6363successfully. Technically, only the ` mem::transmute ` call itself needs to be in
6464the block, but it's nice in this case to enclose everything related, so you
6565know where to look. In this case, the details about ` a ` are also important, and
You can’t perform that action at this time.
0 commit comments