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 ce78396 commit 0ce01d5Copy full SHA for 0ce01d5
stdlib/public/core/Collection.swift
@@ -1665,7 +1665,8 @@ extension Collection where SubSequence == Self {
1665
if k == 0 { return }
1666
_precondition(k >= 0, "Number of elements to remove should be non-negative")
1667
guard let idx = index(startIndex, offsetBy: k, limitedBy: endIndex) else {
1668
- _preconditionFailure("Can't remove more items from a collection than it contains")
+ _preconditionFailure(
1669
+ "Can't remove more items from a collection than it contains")
1670
}
1671
self = self[idx..<endIndex]
1672
"Can't remove more items from a collection than it contains")
0 commit comments