Skip to content

Commit 2e71e22

Browse files
mattyoungnatecook1000
authored andcommitted
Update Suffix.swift
Change `endOfPrefix(while:)` and `startOfSuffix(while:)` from internal to public
1 parent 328631d commit 2e71e22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Algorithms/Suffix.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ extension Collection {
4646
///
4747
/// - Complexity: O(*n*), where *n* is the length of the collection.
4848
@inlinable
49-
internal func endOfPrefix(
49+
public func endOfPrefix(
5050
while predicate: (Element) throws -> Bool
5151
) rethrows -> Index {
5252
var index = startIndex
@@ -72,7 +72,7 @@ extension BidirectionalCollection {
7272
///
7373
/// - Complexity: O(*n*), where *n* is the length of the collection.
7474
@inlinable
75-
internal func startOfSuffix(
75+
public func startOfSuffix(
7676
while predicate: (Element) throws -> Bool
7777
) rethrows -> Index {
7878
var index = endIndex

0 commit comments

Comments
 (0)