]> Cypherpunks repositories - gostls13.git/commit
encoding/binary: make type error more specific
authorRuss Cox <rsc@golang.org>
Fri, 15 Feb 2013 18:12:28 +0000 (13:12 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 15 Feb 2013 18:12:28 +0000 (13:12 -0500)
commit2b9787c2f3861736e82aa715343b67157911917f
tree5212baa0eee6851a46d4a25f6d68251357f7bf11
parentd47cc872b5654508a1ca4e29b4653e869c463a70
encoding/binary: make type error more specific

Right now it says 'invalid type S' for a struct type S.
Instead, say which type inside the struct is the problem.

Fixes #4825.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/7301102
src/pkg/encoding/binary/binary.go
src/pkg/encoding/binary/binary_test.go