Skip to content

Commit 0ce01d5

Browse files
authored
Update Collection.swift
1 parent ce78396 commit 0ce01d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/core/Collection.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,8 @@ extension Collection where SubSequence == Self {
16651665
if k == 0 { return }
16661666
_precondition(k >= 0, "Number of elements to remove should be non-negative")
16671667
guard let idx = index(startIndex, offsetBy: k, limitedBy: endIndex) else {
1668-
_preconditionFailure("Can't remove more items from a collection than it contains")
1668+
_preconditionFailure(
1669+
"Can't remove more items from a collection than it contains")
16691670
}
16701671
self = self[idx..<endIndex]
16711672
"Can't remove more items from a collection than it contains")

0 commit comments

Comments
 (0)