]> Cypherpunks repositories - gostls13.git/commit
bytes, strings: rename parameters in ExampleCut{Pre,Suf}fix
authorTobias Klauser <tklauser@distanz.ch>
Thu, 8 May 2025 12:13:16 +0000 (14:13 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 12 May 2025 16:07:54 +0000 (09:07 -0700)
commit238d273da4859fe4be5db019879fdb886a547350
tree7eed3251f902cdab63895d6f70cf292f3e05b6cf
parentc0eb7ab3062fae802639545770f6a897d75b0085
bytes, strings: rename parameters in ExampleCut{Pre,Suf}fix

The old parameter name sep was probably copied from ExampleCut. Change
the parameter names to prefix and suffix, respectivly to make the
examples a bit more readable.

Change-Id: Ie14b0050c2fafe3301c5368efd548a1629a7545f
Reviewed-on: https://go-review.googlesource.com/c/go/+/670955
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Robert Griesemer <gri@google.com>
src/bytes/example_test.go
src/strings/example_test.go