aboutsummaryrefslogtreecommitdiff
path: root/src/index/suffixarray/suffixarray.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2022-01-30 20:11:47 -0500
committerRuss Cox <rsc@golang.org>2022-04-01 18:18:07 +0000
commit690ac4071fa3e07113bf371c9e74394ab54d6749 (patch)
tree668fba312c6e891b11dce2c3db163312d3ed8fde /src/index/suffixarray/suffixarray.go
parent89dff118ada91061350aa149b54a2ab4fdbd6810 (diff)
downloadgo-690ac4071fa3e07113bf371c9e74394ab54d6749.tar.xz
all: remove trailing blank doc comment lines
A future change to gofmt will rewrite // Doc comment. // func f() to // Doc comment. func f() Apply that change preemptively to all doc comments. For #51082. Change-Id: I4023e16cfb0729b64a8590f071cd92f17343081d Reviewed-on: https://go-review.googlesource.com/c/go/+/384259 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
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