From de68e8f9ce76db3f46ad4659544082781602a746 Mon Sep 17 00:00:00 2001 From: Bernie Birnbaum Date: Thu, 10 Aug 2023 04:27:31 -0400 Subject: [PATCH] Typo in matchers.go (#691) --- matchers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matchers.go b/matchers.go index bdaf62b56..4c13ad0a7 100644 --- a/matchers.go +++ b/matchers.go @@ -94,7 +94,7 @@ func Succeed() types.GomegaMatcher { // // Expect(err).Should(MatchError("an error")) //asserts that err.Error() == "an error" // Expect(err).Should(MatchError(SomeError)) //asserts that err == SomeError (via reflect.DeepEqual) -// Expect(err).Should(MatchError(ContainSubstring("sprocket not found"))) // asserts that edrr.Error() contains substring "sprocket not found" +// Expect(err).Should(MatchError(ContainSubstring("sprocket not found"))) // asserts that err.Error() contains substring "sprocket not found" // // It is an error for err to be nil or an object that does not implement the // Error interface