From: Russ Cox Date: Mon, 24 Sep 2012 15:47:27 +0000 (-0400) Subject: reflect: fix mistake in error message X-Git-Tag: go1.1rc2~2355 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8696b0844600882ca962d155576a0604efe96922;p=gostls13.git 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 --- diff --git a/src/pkg/reflect/type.go b/src/pkg/reflect/type.go index 4878f2dc28..493a6721d8 100644 --- a/src/pkg/reflect/type.go +++ b/src/pkg/reflect/type.go @@ -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