diff --git a/Sources/_StringProcessing/Algorithms/Algorithms/SubstringSearcher.swift b/Sources/_StringProcessing/Algorithms/Algorithms/SubstringSearcher.swift index bcdf20812..46b88cf0d 100644 --- a/Sources/_StringProcessing/Algorithms/Algorithms/SubstringSearcher.swift +++ b/Sources/_StringProcessing/Algorithms/Algorithms/SubstringSearcher.swift @@ -12,6 +12,7 @@ /// An implementation of the Boyer-Moore-Horspool algorithm, for string-specific /// searching. struct SubstringSearcher: Sequence, IteratorProtocol { + typealias Element = Range struct State { let badCharacterOffsets: [Character: Int] let patternCount: Int