We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8f4814 commit bdb7c7fCopy full SHA for bdb7c7f
Sources/Algorithms/Partition.swift
@@ -178,8 +178,8 @@ extension Collection {
178
/// - Parameter belongsInSecondPartition: A predicate that partitions the
179
/// collection.
180
/// - 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.
+ /// `predicate` returns `true`, or `endIndex` if there are no elements
+ /// for which `predicate` returns `true`.
183
///
184
/// - Complexity: O(log *n*), where *n* is the length of this collection if
185
/// the collection conforms to `RandomAccessCollection`, otherwise O(*n*).
0 commit comments