Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesyo committed May 14, 2021
1 parent ba344b3 commit 564811c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ expect(aResult).to(beSuccess { value in
enum AnError: Error {
case somethingHappened
}
let otherResult: Result<String, Error> = .failure(AnError.somethingHappened)
let otherResult: Result<String, AnError> = .failure(.somethingHappened)

// passes if result is .failure
expect(otherResult).to(beFailure())
Expand All @@ -1227,6 +1227,8 @@ expect(otherResult).to(beFailure { error in
})
```

> This matcher is only available in Swift.
## Matching a value to any of a group of matchers

```swift
Expand Down

0 comments on commit 564811c

Please sign in to comment.