Skip to content

Commit 2aadfe8

Browse files
oaldersboyan-soubachov
authored andcommitted
Grammatical change in documentation for Run()
There was a switch between singular and plural which made this line a little bit hard to parse.
1 parent 55d8b57 commit 2aadfe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mock/mock.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (c *Call) After(d time.Duration) *Call {
147147
}
148148

149149
// Run sets a handler to be called before returning. It can be used when
150-
// mocking a method such as unmarshalers that takes a pointer to a struct and
150+
// mocking a method (such as an unmarshaler) that takes a pointer to a struct and
151151
// sets properties in such struct
152152
//
153153
// Mock.On("Unmarshal", AnythingOfType("*map[string]interface{}").Return().Run(func(args Arguments) {

0 commit comments

Comments
 (0)