From a8a0a29c703037e9c395d16408cc547dd58d7f24 Mon Sep 17 00:00:00 2001 From: Ben Cohen Date: Sun, 23 Nov 2025 14:54:23 -0800 Subject: [PATCH] Add explicit typealias to help with swift/#85294 --- .../Algorithms/Algorithms/SubstringSearcher.swift | 1 + 1 file changed, 1 insertion(+) 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