Skip to content

Commit bdb7c7f

Browse files
authored
Update documentation
1 parent f8f4814 commit bdb7c7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Algorithms/Partition.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ extension Collection {
178178
/// - Parameter belongsInSecondPartition: A predicate that partitions the
179179
/// collection.
180180
/// - Returns: The index of the first element in the collection for which
181-
/// `predicate` returns `true`, or `endIndex` if `predicate` returns `false`
182-
/// for all elements.
181+
/// `predicate` returns `true`, or `endIndex` if there are no elements
182+
/// for which `predicate` returns `true`.
183183
///
184184
/// - Complexity: O(log *n*), where *n* is the length of this collection if
185185
/// the collection conforms to `RandomAccessCollection`, otherwise O(*n*).

0 commit comments

Comments
 (0)