diff options
Diffstat (limited to 'src/strings/strings_test.go')
| -rw-r--r-- | src/strings/strings_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/strings/strings_test.go b/src/strings/strings_test.go index 6d394f47be..8af81a556b 100644 --- a/src/strings/strings_test.go +++ b/src/strings/strings_test.go @@ -660,8 +660,7 @@ func TestMap(t *testing.T) { } orig := "Input string that we expect not to be copied." m = Map(identity, orig) - if (*reflect.StringHeader)(unsafe.Pointer(&orig)).Data != - (*reflect.StringHeader)(unsafe.Pointer(&m)).Data { + if unsafe.StringData(orig) != unsafe.StringData(m) { t.Error("unexpected copy during identity map") } |
