Skip to content

Commit

Permalink
langref: bit-aligned -> byte-aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
pjz committed Mar 15, 2024
1 parent 67a40c6 commit df17464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/langref.html.in
Original file line number Diff line number Diff line change
Expand Up @@ -3303,7 +3303,7 @@ var bit_field = BitField{
.c = 3,
};

test "pointer to non-bit-aligned field" {
test "pointer to non-byte-aligned field" {
try expect(bar(&bit_field.b) == 2);
}

Expand Down Expand Up @@ -3352,7 +3352,7 @@ const BitField = packed struct {
c: u2,
};

test "pointer to non-bit-aligned field" {
test "offsets of non-byte-aligned fields" {
comptime {
try expect(@bitOffsetOf(BitField, "a") == 0);
try expect(@bitOffsetOf(BitField, "b") == 3);
Expand Down

0 comments on commit df17464

Please sign in to comment.