From ecb9d9b95ccba900de9504b3699a219c84b0aa96 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Fri, 1 Dec 2023 12:54:00 -0800 Subject: [PATCH] doc: document changes to slices package Change-Id: I4e3f9812463251acd312372dd8a4f8c2cea9e289 Reviewed-on: https://go-review.googlesource.com/c/go/+/545996 Reviewed-by: Eli Bendersky Reviewed-by: Keith Randall TryBot-Bypass: Keith Randall --- doc/go1.22.html | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/doc/go1.22.html b/doc/go1.22.html index b6be84168e..0d358b8046 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -534,20 +534,16 @@ Do not send CLs removing the interior tags from such phrases.
slices
-

- TODO: https://go.dev/issue/56353: add Concat +

+ The new function Concat concatenates multiple slices.

-

- TODO: https://go.dev/issue/63393: have Delete and others clear the tail +

+ Functions that shrink the size of a slice (Delete, DeleteFunc, Compact, CompactFunc, and Replace) now zero the elements between the new length and the old length.

-

- TODO: https://go.dev/cl/504882: slices: add Concat -

- -

- TODO: https://go.dev/cl/540155: slices: make Insert panic if index is out of range and there are no values +

+ Insert now always panics if the argument i is out of range. Previously it did not panic in this situation if there were no elements to be inserted.

-- 2.50.0