fix typo in comment
This commit is contained in:
parent
0d5fdcca6c
commit
6237f2381d
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ fn main() {
|
|||
unsafe {
|
||||
let p = PackedSized { f: 0, d: [1, 2, 3, 4] };
|
||||
let p = p.unsize() as *const PackedUnsized;
|
||||
// Make sure the size computation correctly adds exact 1 byte of padding
|
||||
// Make sure the size computation correctly adds exactly 1 byte of padding
|
||||
// in front of the `d` field.
|
||||
assert_eq!(mem::size_of_val_raw(p), 1 + 1 + 4 * 4);
|
||||
// And likewise for the offset computation.
|
||||
|
|
Loading…
Add table
Reference in a new issue