diff options
author | Ian Lance Taylor <iant@golang.org> | 2018-02-25 15:24:08 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2018-02-26 18:35:46 +0000 |
commit | 85caeafb8c0d4c6926d67ce2939470780fab1a04 (patch) | |
tree | 7f42aa86e5d68dbcd8e38817dc406f26190be018 /src/unsafe | |
parent | cbfda7f89284c3e2809a303096632cbe312dbb69 (diff) | |
download | go-85caeafb8c0d4c6926d67ce2939470780fab1a04.tar.gz go-85caeafb8c0d4c6926d67ce2939470780fab1a04.zip |
unsafe: fix reference to string header
Fixes #24115
Change-Id: I89d3d5a9c0916fd2e21fe5930549c4129de8ab48
Reviewed-on: https://go-review.googlesource.com/96983
Reviewed-by: Giovanni Bajo <rasky@develer.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/unsafe')
-rw-r--r-- | src/unsafe/unsafe.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |