diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2019-04-01 14:12:51 +0200 |
|---|---|---|
| committer | Tobias Klauser <tobias.klauser@gmail.com> | 2019-04-02 05:45:33 +0000 |
| commit | 56517216c052649daab6c439f386f9dc02e90c3a (patch) | |
| tree | 4542856f5942b9ec23978939e0022a0fa786ff87 /src/internal/bytealg | |
| parent | 46c3e217188043c7cea9e181f0d61825d2636ad7 (diff) | |
| download | go-56517216c052649daab6c439f386f9dc02e90c3a.tar.xz | |
internal/bytealg: fix function reference in comments
There's no IndexShortStr func, refer to Index instead.
Change-Id: I6923e7ad3e910e4b5fb0c07d6339ddfec4111f4f
Reviewed-on: https://go-review.googlesource.com/c/go/+/170124
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/internal/bytealg')
| -rw-r--r-- | src/internal/bytealg/index_arm64.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/internal/bytealg/index_arm64.go b/src/internal/bytealg/index_arm64.go index 251e63567e..e87c109519 100644 --- a/src/internal/bytealg/index_arm64.go +++ b/src/internal/bytealg/index_arm64.go @@ -4,7 +4,7 @@ package bytealg -// Empirical data shows that using IndexShortStr can get better +// Empirical data shows that using Index can get better // performance when len(s) <= 16. const MaxBruteForce = 16 @@ -14,7 +14,7 @@ func init() { } // Cutover reports the number of failures of IndexByte we should tolerate -// before switching over to IndexShortStr. +// before switching over to Index. // n is the number of bytes processed so far. // See the bytes.Index implementation for details. func Cutover(n int) int { |
