aboutsummaryrefslogtreecommitdiff
path: root/doc/langref/test_overaligned_packed_struct.zig
diff options
context:
space:
mode:
Diffstat (limited to 'doc/langref/test_overaligned_packed_struct.zig')
-rw-r--r--doc/langref/test_overaligned_packed_struct.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/langref/test_overaligned_packed_struct.zig b/doc/langref/test_overaligned_packed_struct.zig
index b739b0d407..8bf52b3297 100644
--- a/doc/langref/test_overaligned_packed_struct.zig
+++ b/doc/langref/test_overaligned_packed_struct.zig
@@ -8,7 +8,7 @@ const S = packed struct {
test "overaligned pointer to packed struct" {
var foo: S align(4) = .{ .a = 1, .b = 2 };
const ptr: *align(4) S = &foo;
- const ptr_to_b: *u32 = &ptr.b;
+ const ptr_to_b = &ptr.b;
try expect(ptr_to_b.* == 2);
}