Update Suffix.swift

Change `endOfPrefix(while:)` and `startOfSuffix(while:)` from internal to public
This commit is contained in:
Matthew Young authored and Nate Cook committed 2023-11-14 13:00:34 -06:00
1 parent 328631d60c
commit 2e71e228c0
1 file changed
+2 -2
+2 -2
View File
@@ -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