diff options
author | Kyle Consalus <consalus@gmail.com> | 2011-08-08 14:32:37 -0700 |
---|---|---|
committer | Kyle Consalus <consalus@gmail.com> | 2011-08-08 14:32:37 -0700 |
commit | a6377e344f65d0c48e9663201816ebfe7dcd85c0 (patch) | |
tree | 257ad13e1fa925b09e673266446ba1daf0f05ad5 /src/pkg/index | |
parent | ea6b66a181201b44c14e696ce76caa79fe80977d (diff) | |
download | go-a6377e344f65d0c48e9663201816ebfe7dcd85c0.tar.gz |
crypto/x509, go/scanner, index/suffixarray: Removed []interface{}/vector uses.
Changed some []interface{} uses to slices of the concrete types; removed use of IntVector.
R=gri, rsc
CC=golang-dev
http://codereview.appspot.com/4810085
Committer: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/pkg/index')
-rw-r--r-- | src/pkg/index/suffixarray/suffixarray_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pkg/index/suffixarray/suffixarray_test.go b/src/pkg/index/suffixarray/suffixarray_test.go index bd37ba400..023748500 100644 --- a/src/pkg/index/suffixarray/suffixarray_test.go +++ b/src/pkg/index/suffixarray/suffixarray_test.go @@ -6,7 +6,6 @@ package suffixarray import ( "bytes" - "container/vector" "regexp" "sort" "strings" @@ -107,7 +106,7 @@ var testCases = []testCase{ // find all occurrences of s in source; report at most n occurrences func find(src, s string, n int) []int { - var res vector.IntVector + var res []int if s != "" && n != 0 { // find at most n occurrences of s in src for i := -1; n < 0 || len(res) < n; { @@ -116,7 +115,7 @@ func find(src, s string, n int) []int { break } i += j + 1 - res.Push(i) + res = append(res, i) } } return res |