diff --git a/internal/unsafeheader/unsafeheader.go b/internal/unsafeheader/unsafeheader.go index bfc5d3cf..e07899b9 100644 --- a/internal/unsafeheader/unsafeheader.go +++ b/internal/unsafeheader/unsafeheader.go @@ -3,10 +3,10 @@ // license that can be found in the LICENSE file. // Package unsafeheader contains header declarations for the Go runtime's -// slice and struct implementations. +// slice and string implementations. // // This package allows x/sys to use types equivalent to -// reflect.SliceHeader and reflect.StructHeader without introducing +// reflect.SliceHeader and reflect.StringHeader without introducing // a dependency on the (relatively heavy) "reflect" package. package unsafeheader @@ -22,7 +22,7 @@ type Slice struct { Cap int } -// StringHeader is the runtime representation of a string. +// String is the runtime representation of a string. // It cannot be used safely or portably and its representation may change in a later release. type String struct { Data unsafe.Pointer