]> Cypherpunks repositories - gostls13.git/commit
strings: make variable/type association consistent in function signatures
authorAlexander Greim <alexxx@iltempo.de>
Sun, 29 Mar 2020 15:10:44 +0000 (17:10 +0200)
committerIan Lance Taylor <iant@golang.org>
Mon, 30 Mar 2020 03:39:49 +0000 (03:39 +0000)
commit0b7c202e98949b530f7f4011efd454164356ba69
tree444345db690ed27cc67275511ab984a764df9f50
parent7bfac4c3ddde3dd906b344f141a9d09a5f855c77
strings: make variable/type association consistent in function signatures

The type annotation of some trim functions are inconsistent with all
other function signatures of the strings package.

Example:
func TrimRight(s string, cutset string) string

To be:
func TrimRight(s, cutset string) string

Change-Id: I456a33287bfb4ad6a7962e30a6424f209ac320c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/226339
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/strings/strings.go