three => one

This commit is contained in:
Jes Cok 2023-10-27 23:00:23 +08:00
parent 46882a8f42
commit b11a2bf947
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ var MaxLen int
// FIXME: the logic of IndexRabinKarpBytes and IndexRabinKarp are exactly the same,
// except that the types are different.
// Can we eliminate three of them without causing allocation?
// Can we eliminate one of them without causing allocation?
// PrimeRK is the prime base used in Rabin-Karp algorithm.
const PrimeRK = 16777619