update comment

This commit is contained in:
vedhavyas 2018-11-07 10:59:48 +01:00
parent d10ea56443
commit 76b5373422
No known key found for this signature in database
GPG key ID: 317BF0923E3EB7E5

View file

@ -228,7 +228,7 @@ func (t Type) requiresLengthPrefix() bool {
return t.T == StringTy || t.T == BytesTy || t.T == SliceTy
}
// getOffset returns the offset to be added
// getOffset returns the offset to be added for t
func getOffset(t Type) int {
if t.T == ArrayTy {
return 32 * t.Size