aboutsummaryrefslogtreecommitdiff
path: root/src/pkg
diff options
context:
space:
mode:
authorRichard Musiol <mail@richard-musiol.de>2013-12-30 11:41:01 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2013-12-30 11:41:01 -0800
commit7ff57e2fa1999a5f4c97a1caf4fd467c2c0b2f3b (patch)
treed7e2fe9d1e3322ea147292a830376bbe063cb1cc /src/pkg
parent96ee10fb71771590f95cef7c478ddca3665d4b22 (diff)
downloadgo-7ff57e2fa1999a5f4c97a1caf4fd467c2c0b2f3b.tar.xz
reflect: fixed method name in Slice3 error message
R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/46500043
Diffstat (limited to 'src/pkg')
-rw-r--r--src/pkg/reflect/value.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/reflect/value.go b/src/pkg/reflect/value.go
index e37a3f8879..89d329257b 100644
--- a/src/pkg/reflect/value.go
+++ b/src/pkg/reflect/value.go
@@ -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)