Skip to content

Commit 13d1ac5

Browse files
committed
[stdlib] Update partition implementation with feedback
1 parent 1d03780 commit 13d1ac5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/core/CollectionAlgorithms.swift.gyb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ orderingExplanation = """\
144144

145145
extension MutableCollection {
146146
public mutating func partition(
147-
by belongsInSecondPartition: @noescape (${IElement}) throws -> Bool
147+
by belongsInSecondPartition: @noescape (${IElement}) throws -> Bool
148148
) rethrows -> Index {
149149

150150
var pivot = startIndex
@@ -170,9 +170,9 @@ extension MutableCollection {
170170
}
171171
}
172172

173-
extension MutableCollection where Self: BidirectionalCollection {
173+
extension MutableCollection where Self : BidirectionalCollection {
174174
public mutating func partition(
175-
by belongsInSecondPartition: @noescape (${IElement}) throws -> Bool
175+
by belongsInSecondPartition: @noescape (${IElement}) throws -> Bool
176176
) rethrows -> Index {
177177
let maybeOffset = try _withUnsafeMutableBufferPointerIfSupported {
178178
(baseAddress, count) -> Int in

0 commit comments

Comments
 (0)