From 2aadfe8adca614bc61fc5164125713dc7c2c1ec3 Mon Sep 17 00:00:00 2001 From: Olaf Alders Date: Tue, 18 Feb 2020 13:48:01 -0500 Subject: [PATCH] Grammatical change in documentation for Run() There was a switch between singular and plural which made this line a little bit hard to parse. --- mock/mock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mock/mock.go b/mock/mock.go index 6b80d3c..58e0798 100644 --- a/mock/mock.go +++ b/mock/mock.go @@ -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) {