Revert "stdlib: Mark many higher-order function interfaces as 'rethrows'."

This reverts commit r30597, to help detangle it from other potentially-breaking changes that landed
on the bots simultaneously.

Swift SVN r30602
This commit is contained in:
Joe Groff
2015-07-24 23:31:59 +00:00
parent f50fad6c1f
commit b0ec0d6da4
16 changed files with 139 additions and 140 deletions

View File

@@ -57,10 +57,10 @@ extension CollectionType {
///
/// - Complexity: O(`self.count`).
public func indexOf(
@noescape predicate: (${GElement}) throws -> Bool
) rethrows -> Index? {
@noescape predicate: (${GElement}) -> Bool
) -> Index? {
for i in self.indices {
if try predicate(self[i]) {
if predicate(self[i]) {
return i
}
}