mirror of
https://github.com/golang/go
synced 2024-11-16 22:04:50 -07:00
index/suffixarray: add available godoc link
Change-Id: Ic6397348108f00fc88b59b259169bd98daceba3a Reviewed-on: https://go-review.googlesource.com/c/go/+/535085 Run-TryBot: shuang cui <imcusg@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
22344034c5
commit
ba5ebc0a0b
@ -70,8 +70,8 @@ func (a *ints) slice(i, j int) ints {
|
|||||||
return ints{nil, a.int64[i:j]}
|
return ints{nil, a.int64[i:j]}
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new Index for data.
|
// New creates a new [Index] for data.
|
||||||
// Index creation time is O(N) for N = len(data).
|
// [Index] creation time is O(N) for N = len(data).
|
||||||
func New(data []byte) *Index {
|
func New(data []byte) *Index {
|
||||||
ix := &Index{data: data}
|
ix := &Index{data: data}
|
||||||
if len(data) <= maxData32 {
|
if len(data) <= maxData32 {
|
||||||
|
Loading…
Reference in New Issue
Block a user