]> Cypherpunks repositories - gostls13.git/commit
slices: fix incorrect comment in slices.Insert function documentation
authorcuishuang <imcusg@gmail.com>
Fri, 21 Nov 2025 02:47:06 +0000 (10:47 +0800)
committerSean Liao <sean@liao.dev>
Sun, 23 Nov 2025 11:35:46 +0000 (03:35 -0800)
commit437323ef7b933255c5c7fbb0775019e95f19b05e
tree8ea74e005f9b73d5e0634806e6f3b7ac693475de
parent1993dca4002267b772566d6c8055c6ace46dfd4f
slices: fix incorrect comment in slices.Insert function documentation

The comment previously stated that r[i+len(v)] would equal the value
originally at r[i], but it should be the value originally at s[i].

Change-Id: I635ddbdd5dc4da9c06ed426d5542bf969b7fe6dd
Reviewed-on: https://go-review.googlesource.com/c/go/+/722680
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/slices/slices.go