Skip to content

Commit 2b38c71

Browse files
authored
Merge pull request #816 from null-z/fix-example-testcase-id-doc
Fix example testcase in Examples.md
2 parents 68cf4d9 + 5a8c96f commit 2b38c71

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)