From a2862e41f3f866e4d37c940a33e25827e504cfed Mon Sep 17 00:00:00 2001 From: losnir Date: Fri, 2 Feb 2024 23:42:12 +0200 Subject: [PATCH] docs: fix HaveEach matcher signature --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 615e2c912..5ac03bc91 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1281,7 +1281,7 @@ Expect([]string{"Foo", "FooBar"}).To(HaveExactElements([]string{"FooBar", "Foo"} Note that Go's type system does not allow you to write this as `HaveExactElements([]string{"FooBar", "Foo"}...)` as `[]string` and `[]interface{}` are different types - hence the need for this special rule. -#### HaveEach(element ...interface{}) +#### HaveEach(element interface{}) ```go Ω(ACTUAL).Should(HaveEach(ELEMENT))