]> Cypherpunks repositories - gostls13.git/commit
slices: simplify rotate code
authorKeith Randall <khr@golang.org>
Mon, 15 Jan 2024 21:04:36 +0000 (13:04 -0800)
committerKeith Randall <khr@golang.org>
Mon, 4 Mar 2024 20:01:33 +0000 (20:01 +0000)
commitf1722e9a6e57e4e7b926c4204707f7a15091b5c0
tree5949a810012986210ea9fa9265950ec47cf05e68
parentf27a57ffb8e558c74e36b952e8050025b1c7c6a0
slices: simplify rotate code

The rotate-by-reverse code in fact does only 2 writes per entry, so
it is fine and simpler.

Change-Id: I5feea9698b5575f1f0ae9069cc1d074643529262
Reviewed-on: https://go-review.googlesource.com/c/go/+/562321
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/slices/slices.go