diff options
| author | Ryan Hitchman <hitchmanr@gmail.com> | 2010-12-08 21:36:56 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2010-12-08 21:36:56 -0800 |
| commit | 062406bc644f1606a2c0fa6f0e25ac04aebfd55e (patch) | |
| tree | b4aa502a43b4ded39abcbe5a1abad1391c52dc39 /src/pkg/index/suffixarray | |
| parent | 14804a412b30d561ee63a15735ef21c75c77df89 (diff) | |
| download | go-062406bc644f1606a2c0fa6f0e25ac04aebfd55e.tar.xz | |
throughout: simplify two-variable ranges with unused second variable
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/3529041
Diffstat (limited to 'src/pkg/index/suffixarray')
| -rw-r--r-- | src/pkg/index/suffixarray/suffixarray.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/index/suffixarray/suffixarray.go b/src/pkg/index/suffixarray/suffixarray.go index 4839dbb146..2d728e2c3a 100644 --- a/src/pkg/index/suffixarray/suffixarray.go +++ b/src/pkg/index/suffixarray/suffixarray.go @@ -40,7 +40,7 @@ type Index struct { // func New(data []byte) *Index { sa := make([]int, len(data)) - for i, _ := range sa { + for i := range sa { sa[i] = i } x := &Index{data, sa} |
