Skip to content

Commit 74f84e0

Browse files
committed
fix: incorrect memory alignment comment for tbp struct
1 parent 6b67abe commit 74f84e0

File tree

1 file changed

+1
-1
lines changed
  • topics/go/language/struct_types/advanced/example1

1 file changed

+1
-1
lines changed

topics/go/language/struct_types/advanced/example1/example1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type sbp struct {
3232
type tbp struct {
3333
a bool // 1 byte size 1
3434
// 3 bytes padding size 4
35-
b int32 // 4 bytes size 8 - Aligned on 2 bytes
35+
b int32 // 4 bytes size 8 - Aligned on 4 bytes
3636
}
3737

3838
// Seven byte padding.

0 commit comments

Comments
 (0)