]> Cypherpunks repositories - gostls13.git/commit
debug/dwarf: clarify StructField.ByteSize doc
authorHeschi Kreinick <heschi@google.com>
Wed, 18 Oct 2017 18:29:21 +0000 (14:29 -0400)
committerHeschi Kreinick <heschi@google.com>
Wed, 18 Oct 2017 21:45:30 +0000 (21:45 +0000)
commit7b9d15d5665dc43256a5d6f79a307cc1ad728e2a
tree2c36d66e28ad289c2c612ae21bea9b33a5715800
parent9a84e5274c66510b53255f9c6122eb2e1cf9a0a5
debug/dwarf: clarify StructField.ByteSize doc

StructField.ByteSize is almost always unset; document that Type.Size()
is the place to look.

The dwarf package doesn't spend much effort teaching you DWARF, so I
don't know what level of handholding is appropriate. Still, no harm in a
little comment.

Closes #21093

Change-Id: I0ed8cad2fa18e10a47d264ff16c176d603d6033c
Reviewed-on: https://go-review.googlesource.com/71671
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/debug/dwarf/type.go