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:
parent
96ee10fb71
commit
7ff57e2fa1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user