From a672c86be58f9312b6582ab6e459ff2cb5d18eeb Mon Sep 17 00:00:00 2001 From: justin0u0 <38185674+justin0u0@users.noreply.github.com> Date: Wed, 29 Nov 2023 23:05:01 +0800 Subject: [PATCH] docs: fix `HaveExactElement` typo (#712) --- matchers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matchers.go b/matchers.go index 43f994374..8860d677f 100644 --- a/matchers.go +++ b/matchers.go @@ -394,7 +394,7 @@ func ConsistOf(elements ...interface{}) types.GomegaMatcher { } } -// HaveExactElemets succeeds if actual contains elements that precisely match the elemets passed into the matcher. The ordering of the elements does matter. +// HaveExactElements succeeds if actual contains elements that precisely match the elemets passed into the matcher. The ordering of the elements does matter. // By default HaveExactElements() uses Equal() to match the elements, however custom matchers can be passed in instead. Here are some examples: // // Expect([]string{"Foo", "FooBar"}).Should(HaveExactElements("Foo", "FooBar"))