We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2368113 + 364a8d8 commit b1011faCopy full SHA for b1011fa
reference/src/layout/unions.md
@@ -22,7 +22,7 @@ there.
22
23
For unions tagged `#[repr(C)]`, the compiler will apply the C layout scheme. Per
24
sections [6.5.8.5] and [6.7.2.1.16] of the C11 specification, this means that
25
-the offset of every field is 0. Unsafe code can case a pointer to the union to
+the offset of every field is 0. Unsafe code can cast a pointer to the union to
26
a field type to obtain a pointer to any field, and vice versa.
27
28
[6.5.8.5]: http://port70.net/~nsz/c/c11/n1570.html#6.5.8p5
0 commit comments