1
0
mirror of https://github.com/golang/go synced 2024-09-25 01:20:13 -06:00

reflect: fixed method name in Slice3 error message

R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/46500043
This commit is contained in:
Richard Musiol 2013-12-30 11:41:01 -08:00 committed by Brad Fitzpatrick
parent 96ee10fb71
commit 7ff57e2fa1

View File

@ -1782,7 +1782,7 @@ func (v Value) Slice3(i, j, k int) Value {
case Array:
if v.flag&flagAddr == 0 {
panic("reflect.Value.Slice: slice of unaddressable array")
panic("reflect.Value.Slice3: slice of unaddressable array")
}
tt := (*arrayType)(unsafe.Pointer(v.typ))
cap = int(tt.len)