]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: fixed method name in Slice3 error message
authorRichard Musiol <mail@richard-musiol.de>
Mon, 30 Dec 2013 19:41:01 +0000 (11:41 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 30 Dec 2013 19:41:01 +0000 (11:41 -0800)
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/46500043

src/pkg/reflect/value.go

index e37a3f8879e58083723f9fbfaf8b0b644696bdb7..89d329257bd8a6061a6f34c29d649af91343cd46 100644 (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)