]> Cypherpunks repositories - gostls13.git/commitdiff
internal/unsafeheader: fix reference in godoc comment for type String
authorTobias Klauser <tklauser@distanz.ch>
Fri, 1 May 2020 14:48:25 +0000 (16:48 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Fri, 1 May 2020 16:14:17 +0000 (16:14 +0000)
Refer to reflect.StringHeader in the godoc comment for type String
instead of reflect.SliceHeader.

Change-Id: I40fc016c7365510a12c41d4ca596f66d2892c3f9
Reviewed-on: https://go-review.googlesource.com/c/go/+/231537
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/internal/unsafeheader/unsafeheader.go

index 2d4d00d45c382822e498333254279b8de3ec1e15..6d092c629a24869ea71dfbbedea8c25bd63e6f26 100644 (file)
@@ -29,7 +29,7 @@ type Slice struct {
 // It cannot be used safely or portably and its representation may
 // change in a later release.
 //
-// Unlike reflect.SliceHeader, its Data field is sufficient to guarantee the
+// Unlike reflect.StringHeader, its Data field is sufficient to guarantee the
 // data it references will not be garbage collected.
 type String struct {
        Data unsafe.Pointer