File tree 1 file changed +2
-2
lines changed 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
33
33
34
34
It’s a ‘non-scalar cast’ because we have multiple values here: the four
35
35
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
37
37
implemented. For this, we need something more dangerous.
38
38
39
39
# ` transmute `
@@ -59,7 +59,7 @@ unsafe {
59
59
}
60
60
```
61
61
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
63
63
successfully. Technically, only the ` mem::transmute ` call itself needs to be in
64
64
the block, but it's nice in this case to enclose everything related, so you
65
65
know 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