Skip to content

Commit dbe07f0

Browse files
authored
Comment is fixed.
- tbp should three byte of padding not two.
1 parent 17897aa commit dbe07f0

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
@@ -28,7 +28,7 @@ type sbp struct {
2828
b int16 // 2 bytes sizeof 4 - Aligned on 2 bytes
2929
}
3030

31-
// Two byte padding.
31+
// Three byte padding.
3232
type tbp struct {
3333
a bool // 1 byte size 1
3434
// 3 bytes padding size 4

0 commit comments

Comments
 (0)