Makes the code agree with the documentation.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
4759050
func (t *uncommonType) Method(i int) (m Method) {
if t == nil || i < 0 || i >= len(t.methods) {
- return
+ panic("reflect: Method index out of range")
}
p := &t.methods[i]
if p.name != nil {
}
x := unsafe.Pointer(p)
if uintptr(x)&reflectFlags != 0 {
- panic("invalid interface value")
+ panic("reflect: invalid interface value")
}
return &(*hdr)(x).t
}