diff --git a/doc/go1.21.html b/doc/go1.21.html index b959cdb116..88200bf33e 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -652,15 +652,21 @@ Do not send CLs removing the interior tags from such phrases.
- TODO: https://go.dev/issue/55002: add Value.Clear
+ The new Value
+ method Value.Clear
+ clears the contents of a map or zeros the contents of a slice.
+ This corresponds to the new clear built-in
+ added to the language.
- TODO: https://go.dev/issue/56906: deprecate SliceHeader and StringHeader -
- -- TODO: https://go.dev/cl/452762: reflect: deprecate SliceHeader and StringHeader; modified api/next/56906.txt +
+ The SliceHeader
+ and StringHeader
+ types are now deprecated. In new code
+ prefer unsafe.Slice,
+ unsafe.SliceData,
+ unsafe.String,
+ or unsafe.StringData.