Skip to content

Commit c45f2af

Browse files
committed
fix
1 parent a848cc0 commit c45f2af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/lean/run/string_kmp.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ inductive S where
55
| r (b e : Nat)
66
deriving Repr, BEq, DecidableEq
77

8-
def run [String.ToSlice α] [String.ToSlice β] (s : α) (pat : β) : List S :=
9-
String.Slice.Pattern.ForwardSliceSearcher.iter (String.ToSlice.toSlice s) (String.ToSlice.toSlice pat)
8+
def run (s pat : String) : List S :=
9+
String.Slice.Pattern.ForwardSliceSearcher.iter s.toSlice pat.toSlice
1010
|>.map (fun | .matched b e => S.m b.offset.byteIdx e.offset.byteIdx | .rejected b e => S.r b.offset.byteIdx e.offset.byteIdx)
1111
|>.toList
1212

0 commit comments

Comments
 (0)