mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SE-0112] Rename ErrorProtocol to Error.
This is bullet (5) of the proposed solution in SE-0112, and the last major piece to be implemented.
This commit is contained in:
@@ -676,7 +676,7 @@ public struct IndexSet : ReferenceConvertible, Equatable, BidirectionalCollectio
|
||||
public func filteredIndexSet(in range : Range<Element>, includeInteger: @noescape (Element) throws -> Bool) rethrows -> IndexSet {
|
||||
let r : NSRange = _toNSRange(range)
|
||||
return try _handle.map {
|
||||
var error : ErrorProtocol? = nil
|
||||
var error : Error? = nil
|
||||
let result = $0.indexes(in: r, options: [], passingTest: { (i, stop) -> Bool in
|
||||
do {
|
||||
let include = try includeInteger(i)
|
||||
|
||||
Reference in New Issue
Block a user