Skip to content

Commit 277b564

Browse files
committed
Update README
1 parent 6ee8288 commit 277b564

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ expect(aResult).to(beSuccess { value in
12161216
enum AnError: Error {
12171217
case somethingHappened
12181218
}
1219-
let otherResult: Result<String, Error> = .failure(AnError.somethingHappened)
1219+
let otherResult: Result<String, AnError> = .failure(.somethingHappened)
12201220

12211221
// passes if result is .failure
12221222
expect(otherResult).to(beFailure())
@@ -1227,6 +1227,8 @@ expect(otherResult).to(beFailure { error in
12271227
})
12281228
```
12291229

1230+
> This matcher is only available in Swift.
1231+
12301232
## Matching a value to any of a group of matchers
12311233

12321234
```swift

0 commit comments

Comments
 (0)