onsi / gomega

Ginkgo's Preferred Matcher Library
http://onsi.github.io/gomega/
MIT License
2.16k stars 282 forks source link

HaveEach(): wrong function signature in docs #727

Closed losnir closed 8 months ago

losnir commented 8 months ago

In the documentation, the function signature for HaveEach() matcher is:

https://github.com/onsi/gomega/blob/762b171852113d80d8fc360558cccbccdc46af70/docs/index.md?plain=1#L1284

But in fact it does not accept variadic arguments:

https://github.com/onsi/gomega/blob/762b171852113d80d8fc360558cccbccdc46af70/matchers.go#L434