Skip to content

Commit f305e01

Browse files
FIX code snippets in README.md
1 parent 9eda904 commit f305e01

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Instead of writing
1111
```swift
1212
import XCTest
1313

14-
func test_should_succeed() async
14+
func test_should_succeed() async {
1515
do {
1616
let isTrue = try await shouldSucceed()
1717
XCTAssertTrue(isTrue)
@@ -26,11 +26,11 @@ conveniently write
2626
```swift
2727
import SwiftAsyncAssert
2828

29-
func test_should_succeed() async
29+
func test_should_succeed() async {
3030
await AsyncAssertTrue(try await shouldSucceed())
3131
}
3232

33-
func test_should_throwError() async
33+
func test_should_throwError() async {
3434
await AsyncAssertThrowsError(try await shouldFail())
3535
}
3636
```

0 commit comments

Comments
 (0)