Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ovechkin-dm committed Sep 10, 2024
1 parent ff280dd commit 827f0f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mock/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,7 @@ func OneOf[T any](values ...T) T {
return t
}

// CreateMatcher returns a Matcher that matches values of type T using the provided Matcher implementation.
// The provided Matcher implementation must implement the Matcher interface.
// CreateMatcher returns a func that creates a custom matcher on invocation.
func CreateMatcher[T any](description string, f func(allArgs []any, actual T) bool) func() T {
return func() T {
m := registry.FunMatcher[T](description, f)
Expand Down

0 comments on commit 827f0f1

Please sign in to comment.