Commit c0946afb authored by Ian Lance Taylor's avatar Ian Lance Taylor

reflect: correct function name in panic string

R=golang-dev, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/36840045
parent 8189605a
...@@ -81,7 +81,7 @@ type methodValue struct { ...@@ -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.
......
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