Skip to content

Commit

Permalink
Merge pull request #462 from holmes/patch-1
Browse files Browse the repository at this point in the history
README tweaks for Custom Validation
  • Loading branch information
modocache authored Sep 7, 2017
2 parents 4ae8928 + adc09b9 commit a63252b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1241,10 +1241,10 @@ Note: This matcher allows you to chain any number of matchers together. This pro
```swift
// Swift
// passes if .succeed is returned from the closure
// passes if .succeeded is returned from the closure
expect({
guard case .enumCaseWithAssociatedValueThatIDontCareAbout = actual else {
return .failed("wrong enum case")
return .failed(reason: "wrong enum case")
}
return .succeeded
Expand All @@ -1253,7 +1253,7 @@ expect({
// passes if .failed is returned from the closure
expect({
guard case .enumCaseWithAssociatedValueThatIDontCareAbout = actual else {
return .failed("wrong enum case")
return .failed(reason: "wrong enum case")
}
return .succeeded
Expand Down

0 comments on commit a63252b

Please sign in to comment.