]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: fix mistake in error message
authorRuss Cox <rsc@golang.org>
Mon, 24 Sep 2012 15:47:27 +0000 (11:47 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 24 Sep 2012 15:47:27 +0000 (11:47 -0400)
Pointed out by James Chalfant after submit of CL 6500065.

TBR=golang-dev
CC=golang-dev
https://golang.org/cl/6543067

src/pkg/reflect/type.go

index 4878f2dc28e543922a2c809fb1912f265bc3de11..493a6721d8fc488b77700938a55c7e6ed6f7f7e7 100644 (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