Skip to content

Commit ee26170

Browse files
tumberinoonsi
authored andcommitted
docs: fix HaveValue example
1 parent cc85c05 commit ee26170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

matchers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,8 @@ func HaveExistingField(field string) types.GomegaMatcher {
515515
// and even interface values.
516516
//
517517
// actual := 42
518-
// Expect(actual).To(HaveValue(42))
519-
// Expect(&actual).To(HaveValue(42))
518+
// Expect(actual).To(HaveValue(Equal(42)))
519+
// Expect(&actual).To(HaveValue(Equal(42)))
520520
func HaveValue(matcher types.GomegaMatcher) types.GomegaMatcher {
521521
return &matchers.HaveValueMatcher{
522522
Matcher: matcher,

0 commit comments

Comments
 (0)