Skip to content

Commit f1b5324

Browse files
committed
assert.FunctionalOptions: fix go doc
1 parent 632a260 commit f1b5324

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

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

0 commit comments

Comments
 (0)