From fe66cc94f48dd4f4acd911dded415656946e5282 Mon Sep 17 00:00:00 2001 From: Matthew Young Date: Wed, 20 Apr 2022 16:54:33 -0700 Subject: [PATCH] Update Suffix.swift Change `endOfPrefix(while:)` and `startOfSuffix(while:)` from internal to public --- Sources/Algorithms/Suffix.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Algorithms/Suffix.swift b/Sources/Algorithms/Suffix.swift index c091b82d..c942adf4 100644 --- a/Sources/Algorithms/Suffix.swift +++ b/Sources/Algorithms/Suffix.swift @@ -46,7 +46,7 @@ extension Collection { /// /// - Complexity: O(*n*), where *n* is the length of the collection. @inlinable - internal func endOfPrefix( + public func endOfPrefix( while predicate: (Element) throws -> Bool ) rethrows -> Index { var index = startIndex @@ -72,7 +72,7 @@ extension BidirectionalCollection { /// /// - Complexity: O(*n*), where *n* is the length of the collection. @inlinable - internal func startOfSuffix( + public func startOfSuffix( while predicate: (Element) throws -> Bool ) rethrows -> Index { var index = endIndex