Skip to content

Commit a8a0a29

Browse files
committed
Add explicit typealias to help with swift/#85294
1 parent efe8986 commit a8a0a29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/_StringProcessing/Algorithms/Algorithms/SubstringSearcher.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/// An implementation of the Boyer-Moore-Horspool algorithm, for string-specific
1313
/// searching.
1414
struct SubstringSearcher: Sequence, IteratorProtocol {
15+
typealias Element = Range<String.Index>
1516
struct State {
1617
let badCharacterOffsets: [Character: Int]
1718
let patternCount: Int

0 commit comments

Comments
 (0)