Skip to content

Commit

Permalink
docs: fix HaveEach matcher signature
Browse files Browse the repository at this point in the history
  • Loading branch information
losnir authored and onsi committed Feb 3, 2024
1 parent 762b171 commit a2862e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a2862e4

Please sign in to comment.