aboutsummaryrefslogtreecommitdiff
path: root/src/index/suffixarray/suffixarray.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/index/suffixarray/suffixarray.go')
-rw-r--r--src/index/suffixarray/suffixarray.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/index/suffixarray/suffixarray.go b/src/index/suffixarray/suffixarray.go
index 9c169e7aca..cdc6e81a80 100644
--- a/src/index/suffixarray/suffixarray.go
+++ b/src/index/suffixarray/suffixarray.go
@@ -230,7 +230,6 @@ func (x *Index) Write(w io.Writer) error {
// Bytes returns the data over which the index was created.
// It must not be modified.
-//
func (x *Index) Bytes() []byte {
return x.data
}
@@ -255,7 +254,6 @@ func (x *Index) lookupAll(s []byte) ints {
// The result is nil if s is empty, s is not found, or n == 0.
// Lookup time is O(log(N)*len(s) + len(result)) where N is the
// size of the indexed data.
-//
func (x *Index) Lookup(s []byte, n int) (result []int) {
if len(s) > 0 && n != 0 {
matches := x.lookupAll(s)
@@ -286,7 +284,6 @@ func (x *Index) Lookup(s []byte, n int) (result []int) {
// in successive order. Otherwise, at most n matches are returned and
// they may not be successive. The result is nil if there are no matches,
// or if n == 0.
-//
func (x *Index) FindAllIndex(r *regexp.Regexp, n int) (result [][]int) {
// a non-empty literal prefix is used to determine possible
// match start indices with Lookup