diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2018-03-12 11:40:34 +0100 |
---|---|---|
committer | Tobias Klauser <tobias.klauser@gmail.com> | 2018-03-12 19:58:42 +0000 |
commit | 025134b0d1b5e5ea2c5216fe4ccb060ab1bea59a (patch) | |
tree | 73d0365de49aa61016de6c5f4d25f0413b4316df /src/runtime/string_test.go | |
parent | 7395083136539331537d46875ab9d196797a2173 (diff) | |
download | go-025134b0d1b5e5ea2c5216fe4ccb060ab1bea59a.tar.gz go-025134b0d1b5e5ea2c5216fe4ccb060ab1bea59a.zip |
runtime: simplify range expressions in tests
Generated by running gofmt -s on the files in question.
Change-Id: If6578b150e1bfced8657196d2af01f5d36879f93
Reviewed-on: https://go-review.googlesource.com/100135
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/string_test.go')
-rw-r--r-- | src/runtime/string_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/string_test.go b/src/runtime/string_test.go index 7633cfde04..c6e925d2e0 100644 --- a/src/runtime/string_test.go +++ b/src/runtime/string_test.go @@ -125,7 +125,7 @@ func BenchmarkRuneIterate(b *testing.B) { for _, sd := range stringdata { b.Run(sd.name, func(b *testing.B) { for i := 0; i < b.N; i++ { - for _ = range sd.data { + for range sd.data { } } }) @@ -135,7 +135,7 @@ func BenchmarkRuneIterate(b *testing.B) { for _, sd := range stringdata { b.Run(sd.name, func(b *testing.B) { for i := 0; i < b.N; i++ { - for _, _ = range sd.data { + for range sd.data { } } }) |