Commit 8696b084 authored by Russ Cox's avatar Russ Cox

reflect: fix mistake in error message

Pointed out by James Chalfant after submit of CL 65000655.

TBR=golang-dev
CC=golang-dev
https://golang.org/cl/6543067
parent 2f066155
...@@ -1101,7 +1101,7 @@ func (t *commonType) AssignableTo(u Type) bool { ...@@ -1101,7 +1101,7 @@ func (t *commonType) AssignableTo(u Type) bool {
func (t *commonType) ConvertibleTo(u Type) bool { func (t *commonType) ConvertibleTo(u Type) bool {
if u == nil { if u == nil {
panic("reflect: nil type passed to Type.AssignableTo") panic("reflect: nil type passed to Type.ConvertibleTo")
} }
uu := u.(*commonType) uu := u.(*commonType)
return convertOp(uu, t) != nil return convertOp(uu, t) != nil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment