]> Cypherpunks.ru repositories - gostls13.git/commit
slices: make Insert panic if index is out of range and there are no values
authorJes Cok <xigua67damn@gmail.com>
Tue, 7 Nov 2023 20:37:26 +0000 (20:37 +0000)
committerKeith Randall <khr@golang.org>
Wed, 8 Nov 2023 18:36:53 +0000 (18:36 +0000)
commit15d985a67529c45dcaad07461611e9a029c662f6
tree2bc12f9f5247984e756ac2192f4efcb90a1f611d
parent0891b17ce53de8350689a89e55583794a12d302e
slices: make Insert panic if index is out of range and there are no values

Fixes #63913

Change-Id: I514190b104a2c4bd5a6b0d96659b52904185e91f
GitHub-Last-Rev: 90e7195193b8e50009fc0d9dcbda953b1ec509b4
GitHub-Pull-Request: golang/go#63965
Reviewed-on: https://go-review.googlesource.com/c/go/+/540155
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Jes Cok <xigua67damn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
src/slices/slices.go
src/slices/slices_test.go