]> Cypherpunks.ru repositories - gostls13.git/commit
bytes,internal/bytealg: add func bytealg.LastIndexRabinKarp
authorJes Cok <xigua67damn@gmail.com>
Tue, 31 Oct 2023 18:34:07 +0000 (18:34 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 1 Nov 2023 19:02:57 +0000 (19:02 +0000)
commita05a25cb19d1ea222e37e7172fe489d972c0ec67
tree34d80bea46507629359a36e3fbe20c6d716620bd
parent0330aad03839fe24d15b1f4b012e908ae3b4614d
bytes,internal/bytealg: add func bytealg.LastIndexRabinKarp

Also rename 'substr' to 'sep' in IndexRabinKarp for consistency.

Change-Id: Icc2ad1116aecaf002c8264daa2fa608306c9a88a
GitHub-Last-Rev: 1784b93f53d569991f86585f9011120ea26f193f
GitHub-Pull-Request: golang/go#63854
Reviewed-on: https://go-review.googlesource.com/c/go/+/538716
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/bytes/bytes.go
src/internal/bytealg/bytealg.go