Skip to content

Commit 4ac55f1

Browse files
committed
assert.FunctionalOptions: fix go doc
1 parent 882382d commit 4ac55f1

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
@@ -816,11 +816,12 @@ func (f *FunctionalOptionsArgument) String() string {
816816
return strings.Replace(fmt.Sprintf("%#v", f.value), "[]interface {}", name, 1)
817817
}
818818

819-
// FunctionalOptions returns an FunctionalOptionsArgument object containing the functional option type
820-
// and the values to check of
819+
// FunctionalOptions returns an [FunctionalOptionsArgument] object containing
820+
// the expected functional-options to check for.
821821
//
822822
// For example:
823-
// Assert(t, FunctionalOptions("[]foo.FunctionalOption", foo.Opt1(), foo.Opt2()))
823+
//
824+
// Assert(t, FunctionalOptions(foo.Opt1("strValue"), foo.Opt2(613)))
824825
func FunctionalOptions(value ...interface{}) *FunctionalOptionsArgument {
825826
return &FunctionalOptionsArgument{
826827
value: value,

0 commit comments

Comments
 (0)