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:
parent
2f06615588
commit
8696b08446
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user