]> Cypherpunks repositories - gostls13.git/commitdiff
unsafe: fix reference to string header
authorIan Lance Taylor <iant@golang.org>
Sun, 25 Feb 2018 23:24:08 +0000 (15:24 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 26 Feb 2018 18:35:46 +0000 (18:35 +0000)
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>
src/unsafe/unsafe.go

index ffe406e1ce657648603fcc028235f552bbc7b3aa..00961cffa336a7a016a040ea99c819487f987c74 100644 (file)
@@ -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