From 560086607870c22e0cce304ec1753bc14ad00f69 Mon Sep 17 00:00:00 2001 From: Max Chechel Date: Thu, 27 Feb 2020 12:47:07 +0300 Subject: [PATCH] Updated README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dd79f1e..284073f 100644 --- a/README.md +++ b/README.md @@ -147,9 +147,9 @@ You can also use invocation counters in your mocks and tests: ```go mc := minimock.NewController(t) formatterMock := NewFormatterMock(mc) -formatterMock.FormatFunc = func(string, ...interface{}) string { +formatterMock.FormatMock.Set(func(string, ...interface{}) string { return fmt.Sprintf("minimock: %d", formatterMock.BeforeFormatCounter()) -} +}) ``` ### Make sure that your mocks are being used