Skip to content

Commit a2862e4

Browse files
losnironsi
authored andcommitted
docs: fix HaveEach matcher signature
1 parent 762b171 commit a2862e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ Expect([]string{"Foo", "FooBar"}).To(HaveExactElements([]string{"FooBar", "Foo"}
12811281

12821282
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.
12831283

1284-
#### HaveEach(element ...interface{})
1284+
#### HaveEach(element interface{})
12851285

12861286
```go
12871287
Ω(ACTUAL).Should(HaveEach(ELEMENT))

0 commit comments

Comments
 (0)