1
0
mirror of https://github.com/golang/go synced 2024-11-26 14:08:37 -07:00

reflect: fix mistake in error message

Pointed out by James Chalfant after submit of CL 6500065.

TBR=golang-dev
CC=golang-dev
https://golang.org/cl/6543067
This commit is contained in:
Russ Cox 2012-09-24 11:47:27 -04:00
parent 2f06615588
commit 8696b08446

View File

@ -1101,7 +1101,7 @@ func (t *commonType) AssignableTo(u Type) bool {
func (t *commonType) ConvertibleTo(u Type) bool {
if u == nil {
panic("reflect: nil type passed to Type.AssignableTo")
panic("reflect: nil type passed to Type.ConvertibleTo")
}
uu := u.(*commonType)
return convertOp(uu, t) != nil