From 8696b0844600882ca962d155576a0604efe96922 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 24 Sep 2012 11:47:27 -0400 Subject: [PATCH] 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 --- src/pkg/reflect/type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.48.1