Skip to content

Commit

Permalink
Merge pull request Quick#547 from alaphao/patch-1
Browse files Browse the repository at this point in the history
Fix code example typo on Writing Your Own Matchers
  • Loading branch information
ikesyo committed Jun 19, 2018
2 parents fac3566 + e3726b7 commit 0256667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ public func equal<T: Equatable>(expectedValue: T?) -> Predicate<T> {
// Predicate { actual in ... }
//
// But shown with types here for clarity.
return Predicate { (actual: Expression<T>) throws -> PredicateResult in
return Predicate { (actualExpression: Expression<T>) throws -> PredicateResult in
let msg = ExpectationMessage.expectedActualValueTo("equal <\(expectedValue)>")
if let actualValue = try actualExpression.evaluate() {
return PredicateResult(
Expand Down

0 comments on commit 0256667

Please sign in to comment.