Update MatchedBy example to include actual use of MatchedBy!

This commit is contained in:
Will Ogden 2016-04-07 11:11:40 +01:00
parent 6fe211e493
commit 17400e7672

View File

@ -489,7 +489,7 @@ func (f argumentMatcher) String() string {
// and false otherwise. // and false otherwise.
// //
// Example: // Example:
// m.On("Do", func(req *http.Request) bool { return req.Host == "example.com" }) // m.On("Do", MatchedBy(func(req *http.Request) bool { return req.Host == "example.com" }))
// //
// |fn|, must be a function accepting a single argument (of the expected type) // |fn|, must be a function accepting a single argument (of the expected type)
// which returns a bool. If |fn| doesn't match the required signature, // which returns a bool. If |fn| doesn't match the required signature,