From 364a8d89ebcfb4d1f5dd94a25a53a342aa16c5ec Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 31 May 2019 10:20:58 +0200 Subject: [PATCH] fix a typo --- reference/src/layout/unions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/src/layout/unions.md b/reference/src/layout/unions.md index 7f3fd912..baf736cf 100644 --- a/reference/src/layout/unions.md +++ b/reference/src/layout/unions.md @@ -22,7 +22,7 @@ there. For unions tagged `#[repr(C)]`, the compiler will apply the C layout scheme. Per sections [6.5.8.5] and [6.7.2.1.16] of the C11 specification, this means that -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 a field type to obtain a pointer to any field, and vice versa. [6.5.8.5]: http://port70.net/~nsz/c/c11/n1570.html#6.5.8p5