Skip to content

Commit 5a8c96f

Browse files
committed
Fix example testcase in Examples.md
1 parent 589493f commit 5a8c96f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Documentation/Examples.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ The `R.validate()` method will throw a detailed error about the problems that oc
1313

1414
*Example testcase*
1515
```swift
16-
do {
17-
try R.validate()
18-
} catch {
19-
XCTFail(error)
20-
}
16+
XCTAssertNoThrow(try R.validate())
2117
```
2218

2319
## Images

0 commit comments

Comments
 (0)