Commit 7ff57e2f authored by Richard Musiol's avatar Richard Musiol Committed by Brad Fitzpatrick

reflect: fixed method name in Slice3 error message

R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/46500043
parent 96ee10fb
......@@ -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)
......
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