From 2e71e228c00dc38ea8f23a82563818beb0a8509f Mon Sep 17 00:00:00 2001 From: Matthew Young Date: Tue, 14 Nov 2023 11:04:54 -0600 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 c091b82..c942adf 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