Skip to content

Commit 364a8d8

Browse files
committed
fix a typo
1 parent 2368113 commit 364a8d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: reference/src/layout/unions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ there.
2222

2323
For unions tagged `#[repr(C)]`, the compiler will apply the C layout scheme. Per
2424
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
25+
the offset of every field is 0. Unsafe code can cast a pointer to the union to
2626
a field type to obtain a pointer to any field, and vice versa.
2727

2828
[6.5.8.5]: http://port70.net/~nsz/c/c11/n1570.html#6.5.8p5

0 commit comments

Comments
 (0)