From: Ian Lance Taylor Date: Sun, 25 Feb 2018 23:24:08 +0000 (-0800) Subject: unsafe: fix reference to string header X-Git-Tag: go1.11beta1~1450 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=85caeafb8c0d4c6926d67ce2939470780fab1a04;p=gostls13.git unsafe: fix reference to string header Fixes #24115 Change-Id: I89d3d5a9c0916fd2e21fe5930549c4129de8ab48 Reviewed-on: https://go-review.googlesource.com/96983 Reviewed-by: Giovanni Bajo Reviewed-by: Brad Fitzpatrick --- diff --git a/src/unsafe/unsafe.go b/src/unsafe/unsafe.go index ffe406e1ce..00961cffa3 100644 --- a/src/unsafe/unsafe.go +++ b/src/unsafe/unsafe.go @@ -158,7 +158,7 @@ type ArbitraryType int // hdr.Len = n // // In this usage hdr.Data is really an alternate way to refer to the underlying -// pointer in the slice header, not a uintptr variable itself. +// pointer in the string header, not a uintptr variable itself. // // In general, reflect.SliceHeader and reflect.StringHeader should be used // only as *reflect.SliceHeader and *reflect.StringHeader pointing at actual