Skip to content

Commit

Permalink
Update Suffix.swift
Browse files Browse the repository at this point in the history
Change `endOfPrefix(while:)` and `startOfSuffix(while:)` from internal to public
  • Loading branch information
mattyoung authored and natecook1000 committed Nov 14, 2023
1 parent 328631d commit 2e71e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Algorithms/Suffix.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2e71e22

Please sign in to comment.