Skip to content

Commit edd74b2

Browse files
authored
Merge pull request #1433 from snirye/master
mock: fix FunctionalOptions docs
2 parents 404159f + da1e147 commit edd74b2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mock/mock.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -820,11 +820,12 @@ func (f *FunctionalOptionsArgument) String() string {
820820
return strings.Replace(fmt.Sprintf("%#v", f.value), "[]interface {}", name, 1)
821821
}
822822

823-
// FunctionalOptions returns an [FunctionalOptionsArgument] object containing the functional option type
824-
// and the values to check of.
823+
// FunctionalOptions returns an [FunctionalOptionsArgument] object containing
824+
// the expected functional-options to check for.
825825
//
826826
// For example:
827-
// Assert(t, FunctionalOptions("[]foo.FunctionalOption", foo.Opt1(), foo.Opt2()))
827+
//
828+
// Assert(t, FunctionalOptions(foo.Opt1("strValue"), foo.Opt2(613)))
828829
func FunctionalOptions(value ...interface{}) *FunctionalOptionsArgument {
829830
return &FunctionalOptionsArgument{
830831
value: value,

0 commit comments

Comments
 (0)