Skip to content

Commit

Permalink
Grammatical change in documentation for Run()
Browse files Browse the repository at this point in the history
There was a switch between singular and plural which made this line a
little bit hard to parse.
  • Loading branch information
oalders authored and boyan-soubachov committed Feb 18, 2020
1 parent 55d8b57 commit 2aadfe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (c *Call) After(d time.Duration) *Call {
}

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

0 comments on commit 2aadfe8

Please sign in to comment.