diff options
| author | Andrew Gerrand <adg@golang.org> | 2011-07-08 10:52:50 +1000 |
|---|---|---|
| committer | Andrew Gerrand <adg@golang.org> | 2011-07-08 10:52:50 +1000 |
| commit | 5bcbcab3118368e87cd676722db711d54d590403 (patch) | |
| tree | fb11b7c18e728feefca7155c48a946e16bdd1244 /src/pkg/index/suffixarray/suffixarray.go | |
| parent | e67a2504a15ac579758f8dc494d4d4e2b5fc13ab (diff) | |
| download | go-5bcbcab3118368e87cd676722db711d54d590403.tar.xz | |
sort: rename helpers: s/Sort// in sort.Sort[Float64s|Ints|Strings]
Includes 'sorthelpers' gofix and updates to tree.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4631098
Diffstat (limited to 'src/pkg/index/suffixarray/suffixarray.go')
| -rw-r--r-- | src/pkg/index/suffixarray/suffixarray.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/index/suffixarray/suffixarray.go b/src/pkg/index/suffixarray/suffixarray.go index 079b7d8ed0..9d4e93217b 100644 --- a/src/pkg/index/suffixarray/suffixarray.go +++ b/src/pkg/index/suffixarray/suffixarray.go @@ -115,7 +115,7 @@ func (x *Index) FindAllIndex(r *regexp.Regexp, n int) (result [][]int) { if len(indices) == 0 { return } - sort.SortInts(indices) + sort.Ints(indices) pairs := make([]int, 2*len(indices)) result = make([][]int, len(indices)) count := 0 @@ -159,7 +159,7 @@ func (x *Index) FindAllIndex(r *regexp.Regexp, n int) (result [][]int) { if len(indices) == 0 { return } - sort.SortInts(indices) + sort.Ints(indices) result = result[0:0] prev := 0 for _, i := range indices { |
