Skip to content

Commit ed2dc56

Browse files
committed
Fix coding style of return type from () -> () to () -> Void
As stated in https://devforums.apple.com/message/1133616#1133616, () -> Void is now standard. Related: swiftlang/swift@6536edd
1 parent 0987cf9 commit ed2dc56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ When running on the Objective-C runtime, XCTest is able to find all of your test
4444

4545
```swift
4646
class TestNSURL : XCTestCase {
47-
var allTests : [(String, () -> ())] {
47+
var allTests : [(String, () -> Void)] {
4848
return [
4949
("test_URLStrings", test_URLStrings),
5050
("test_fileURLWithPath_relativeToURL", test_fileURLWithPath_relativeToURL ),

XCTest/XCTestCaseProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313

1414
public protocol XCTestCaseProvider {
1515
// In the Objective-C version of XCTest, it is possible to discover all tests when the test is executed by asking the runtime for all methods and looking for the string "test". In Swift, we ask test providers to tell us the list of tests by implementing this property.
16-
var allTests : [(String, () -> ())] { get }
16+
var allTests : [(String, () -> Void)] { get }
1717
}
1818

0 commit comments

Comments
 (0)