| author | |
| committer | |
| log | d7d50496d91a8d2e2c1dafa4e92231672b266677 |
| tree | 44edec291d44776d930dd3af81aea5e7caf09df9 |
| parent | 725dec6aa7a7ec48625d16e5ea4e2c730f73d9dd |
1 files changed, 1 insertions(+), 1 deletions(-)
doc/langref/test_overaligned_packed_struct.zig+1-1| ... | ... | @@ -8,7 +8,7 @@ const S = packed struct { |
| 8 | 8 | test "overaligned pointer to packed struct" { |
| 9 | 9 | var foo: S align(4) = .{ .a = 1, .b = 2 }; |
| 10 | 10 | const ptr: *align(4) S = &foo; |
| 11 | const ptr_to_b: *u32 = &ptr.b; | |
| 11 | const ptr_to_b = &ptr.b; | |
| 12 | 12 | try expect(ptr_to_b.* == 2); |
| 13 | 13 | } |
| 14 | 14 |