]> Cypherpunks repositories - gostls13.git/commit
bytes, strings: declare variables inside loop they're used in
authorEric Lagergren <ericscottlagergren@gmail.com>
Mon, 3 Apr 2017 23:08:13 +0000 (16:08 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 3 Apr 2017 23:30:36 +0000 (23:30 +0000)
commit59f6549d1c7e0e074472c46f55716267225f4fd6
treebe763b4e9fd6cd8529a5c13552fb628e7ed53893
parent42426ed41167d6a99cfc9e5a91a4aff1b95093ca
bytes, strings: declare variables inside loop they're used in

The recently updated Count functions declare variables before
special-cased returns.

Change-Id: I8f726118336b7b0ff72117d12adc48b6e37e60ea
Reviewed-on: https://go-review.googlesource.com/39357
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/bytes/bytes.go
src/strings/strings.go