Skip to content

Commit a5ca961

Browse files
committed
Merge branch 'reprc_unions' of github.com:gnzlbg/unsafe-code-guidelines into reprc_unions
2 parents 0f03acd + 6efcf76 commit a5ca961

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
@@ -29,7 +29,7 @@ Even if the offsets happen to be all 0, there might still be differences in the
2929
function call ABI. If you need to pass unions by-value across an FFI boundary,
3030
you have to use `#[repr(C)]`.
3131

32-
### Layout of "repr C" unions
32+
### C-compatible layout ("repr C")
3333

3434
The layout of `repr(C)` unions follows the C layout scheme. Per sections
3535
[6.5.8.5] and [6.7.2.1.16] of the C11 specification, this means that the offset

0 commit comments

Comments
 (0)