diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-06-14 14:30:46 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-06-14 21:46:05 +0000 |
commit | 0fd20ed5b67a950c7085b20c36dbfd9a70d2bfda (patch) | |
tree | e658ea60e95d39138d1df1f0319e03401b471e59 /src/reflect/all_test.go | |
parent | 6bbb0a9d4a086af04d8eb16e17d1b144622a86f5 (diff) | |
download | go-0fd20ed5b67a950c7085b20c36dbfd9a70d2bfda.tar.gz go-0fd20ed5b67a950c7085b20c36dbfd9a70d2bfda.zip |
reflect: use same conversion panic in reflect and runtime
Consistently say "pointer to array", not "array pointer".
Fixes #46743
Change-Id: I2388ec5c16f96e82a3a383b9b462b350686ddc5e
Reviewed-on: https://go-review.googlesource.com/c/go/+/327870
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/reflect/all_test.go')
-rw-r--r-- | src/reflect/all_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/all_test.go b/src/reflect/all_test.go index 17104ad4fa..0db5e13217 100644 --- a/src/reflect/all_test.go +++ b/src/reflect/all_test.go @@ -4371,7 +4371,7 @@ func TestConvertPanic(t *testing.T) { if !v.Type().ConvertibleTo(pt) { t.Errorf("[]byte should be convertible to *[8]byte") } - shouldPanic("reflect: cannot convert slice with length 4 to array pointer with length 8", func() { + shouldPanic("reflect: cannot convert slice with length 4 to pointer to array with length 8", func() { _ = v.Convert(pt) }) } |