Skip to content

Commit

Permalink
docs: fix HaveExactElement typo (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
justin0u0 authored Nov 29, 2023
1 parent f804ac6 commit a672c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matchers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit a672c86

Please sign in to comment.