Skip to content

Commit

Permalink
Merge pull request #634 from Quick/7.x-pr547
Browse files Browse the repository at this point in the history
[7.x] Fix code example typo on Writing Your Own Matchers
  • Loading branch information
ikesyo authored Feb 9, 2019
2 parents 89f278f + ae07dba commit d3fd370
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 d3fd370

Please sign in to comment.