From c56295caef1cd1b91e747d445e7d046c7a5c8720 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Mon, 15 Apr 2024 18:16:49 -0600 Subject: kmp: Update an outdated comment --- cmd/btrfs-rec/inspect/rebuildmappings/kmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/btrfs-rec') diff --git a/cmd/btrfs-rec/inspect/rebuildmappings/kmp.go b/cmd/btrfs-rec/inspect/rebuildmappings/kmp.go index 2f5ec63..29dd26e 100644 --- a/cmd/btrfs-rec/inspect/rebuildmappings/kmp.go +++ b/cmd/btrfs-rec/inspect/rebuildmappings/kmp.go @@ -72,7 +72,7 @@ func kmpEq[K ~int64 | ~int, V comparable](aV V, bS kmpPattern[K, V], bI K) bool // Will panic if the length of 'substr' is 0. // // The 'substr' may include wildcard characters by returning -// ErrWildcard for a position. +// (_, false) for a position. // // Uses the Knuth-Morris-Pratt algorithm. func indexAll[K ~int64 | ~int, V comparable](str diskio.Sequence[K, V], substr kmpPattern[K, V]) []K { -- cgit v1.2.3-2-g168b