reflect: correct function name in panic string

R=golang-dev, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/36840045
This commit is contained in:
Ian Lance Taylor 2013-12-12 18:54:48 -08:00
parent 8189605a96
commit c0946afb9c

View File

@ -81,7 +81,7 @@ type methodValue struct {
// by code like Convert and Interface and Assign. // by code like Convert and Interface and Assign.
func makeMethodValue(op string, v Value) Value { func makeMethodValue(op string, v Value) Value {
if v.flag&flagMethod == 0 { if v.flag&flagMethod == 0 {
panic("reflect: internal error: invalid use of makePartialFunc") panic("reflect: internal error: invalid use of makeMethodValue")
} }
// Ignoring the flagMethod bit, v describes the receiver, not the method type. // Ignoring the flagMethod bit, v describes the receiver, not the method type.