]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: correct function name in panic string
authorIan Lance Taylor <iant@golang.org>
Fri, 13 Dec 2013 02:54:48 +0000 (18:54 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 13 Dec 2013 02:54:48 +0000 (18:54 -0800)
R=golang-dev, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/36840045

src/pkg/reflect/makefunc.go

index e1608ea6c4aa38562a9a076c27453b4391671962..9b1b7d5721baa91cc821b3fde1a21b19f0d84d3c 100644 (file)
@@ -81,7 +81,7 @@ type methodValue struct {
 // by code like Convert and Interface and Assign.
 func makeMethodValue(op string, v Value) Value {
        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.