From ef89f6602c297ae455ea0428e8feaaeaca26530d Mon Sep 17 00:00:00 2001 From: nekno Date: Fri, 18 Feb 2022 13:52:28 -0600 Subject: [PATCH] Update readme with correct Custom Validation code sample Closes #963 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bcba480ab..0a7b8650e 100644 --- a/README.md +++ b/README.md @@ -1266,19 +1266,19 @@ Note: This matcher allows you to chain any number of matchers together. This pro // passes if .succeeded is returned from the closure expect { guard case .enumCaseWithAssociatedValueThatIDontCareAbout = actual else { - return .failed(reason: "wrong enum case") + return { .failed(reason: "wrong enum case") } } - return .succeeded + return { .succeeded } }.to(succeed()) // passes if .failed is returned from the closure expect { guard case .enumCaseWithAssociatedValueThatIDontCareAbout = actual else { - return .failed(reason: "wrong enum case") + return { .failed(reason: "wrong enum case") } } - return .succeeded + return { .succeeded } }.notTo(succeed()) ```