]> Cypherpunks repositories - gostls13.git/commitdiff
internal/bytealg: fix function reference in comments
authorTobias Klauser <tklauser@distanz.ch>
Mon, 1 Apr 2019 12:12:51 +0000 (14:12 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 2 Apr 2019 05:45:33 +0000 (05:45 +0000)
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>
src/internal/bytealg/index_arm64.go

index 251e63567e3d4175f443cd1b13f3ba649bbefa04..e87c109519e4d6a0e39a08861ee76ddd8be9a16f 100644 (file)
@@ -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 {