Merge pull request #291 from willogden/master

Update MatchedBy example to include actual use of MatchedBy!
pull/294/head
Ernesto Jiménez 2016-04-07 14:01:23 +01:00
commit 0744955171
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ func (f argumentMatcher) String() string {
// and false otherwise.
//
// 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)
// which returns a bool. If |fn| doesn't match the required signature,