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.
1 parent 2368113 commit 364a8d8Copy full SHA for 364a8d8
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