mirror of https://github.com/golang/go.git
internal/unsafeheader: fix reference in godoc comment for type String
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>
This commit is contained in:
parent
f092be8fd8
commit
d1b36c8d86
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue