]> Cypherpunks repositories - gostls13.git/commit
strings: avoid unnecessary variable setting
authorKevin Burke <kev@inburke.com>
Thu, 3 Aug 2017 05:24:22 +0000 (22:24 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 9 Aug 2017 04:19:17 +0000 (04:19 +0000)
commite93eb2843c6b6b8e0e6c5e9eb1a4417328055ec6
tree5cdc718b4dc25a04976c14f7d27accc2fa55be2b
parent254f8ea9eafd1678e178b3292a00b8aca517a864
strings: avoid unnecessary variable setting

We initialize fieldStart to 0, then set it to i without ever reading
0, so we might as well just initialize it to i.

Change-Id: I17905b25d54a62b6bc76f915353756ed5eb6972b
Reviewed-on: https://go-review.googlesource.com/52933
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
Reviewed-by: Avelino <t@avelino.xxx>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/strings/strings.go