diff options
| author | Ralf Jung <post@ralfj.de> | 2023-12-05 07:32:49 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-12-05 07:32:49 +0100 |
| commit | 6237f2381d3efb88ccd8153fa3a618fa6d188076 (patch) | |
| tree | e4dea4233f499bc70249eb65d1307c414089b144 | |
| parent | 0d5fdcca6c935f41bc9895bfe40917e8888a1be1 (diff) | |
| download | rust-6237f2381d3efb88ccd8153fa3a618fa6d188076.tar.gz rust-6237f2381d3efb88ccd8153fa3a618fa6d188076.zip | |
fix typo in comment
| -rw-r--r-- | src/tools/miri/tests/pass/issues/issue-3200-packed2-field-offset.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/tests/pass/issues/issue-3200-packed2-field-offset.rs b/src/tools/miri/tests/pass/issues/issue-3200-packed2-field-offset.rs index a5cf337da02..a8a7387ecdc 100644 --- a/src/tools/miri/tests/pass/issues/issue-3200-packed2-field-offset.rs +++ b/src/tools/miri/tests/pass/issues/issue-3200-packed2-field-offset.rs @@ -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. |
