aboutsummaryrefslogtreecommitdiff
path: root/test/blank.go
diff options
context:
space:
mode:
authorRyan Hitchman <hitchmanr@gmail.com>2010-12-08 21:36:56 -0800
committerRobert Griesemer <gri@golang.org>2010-12-08 21:36:56 -0800
commit062406bc644f1606a2c0fa6f0e25ac04aebfd55e (patch)
treeb4aa502a43b4ded39abcbe5a1abad1391c52dc39 /test/blank.go
parent14804a412b30d561ee63a15735ef21c75c77df89 (diff)
downloadgo-062406bc644f1606a2c0fa6f0e25ac04aebfd55e.tar.gz
go-062406bc644f1606a2c0fa6f0e25ac04aebfd55e.zip
throughout: simplify two-variable ranges with unused second variable
R=golang-dev, gri CC=golang-dev https://golang.org/cl/3529041
Diffstat (limited to 'test/blank.go')
-rw-r--r--test/blank.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/blank.go b/test/blank.go
index b9d3a32a81..6e69f8aaae 100644
--- a/test/blank.go
+++ b/test/blank.go
@@ -77,7 +77,7 @@ func main() {
if out != "123" {panic(out)}
sum := 0
- for s, _ := range ints {
+ for s := range ints {
sum += s
}
if sum != 3 {panic(sum)}