Skip to content

Commit 6227bd8

Browse files
authored
Update PartialSort.swift
1 parent acb3583 commit 6227bd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Algorithms/PartialSort.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ extension MutableCollection where Self: RandomAccessCollection {
148148
typealias Priority = (Element, Element) throws -> Bool
149149

150150
/// Partially sorts this collection by using an in-place heapsort that stops
151-
/// after we find the desired k amount
152-
/// of elements. The heap is stored and processed in reverse order so that
153-
/// the collection doesn't have to be flipped once the final result is found.
151+
/// after we find the desired k amount of elements. The heap is stored and
152+
/// processed in reverse order so that the collection doesn't have to be
153+
/// flipped once the final result is found.
154154
///
155155
/// Complexity: O(k log n)
156156
mutating func __partiallySort(

0 commit comments

Comments
 (0)