From 9820fbbe758dc2f352d30f65ea30954a1a7de4a6 Mon Sep 17 00:00:00 2001 From: Dave Wyatt Date: Mon, 1 Apr 2024 18:07:51 -0400 Subject: [PATCH] Update features.md Make the function signature in the RunAndReturn example match that of the Requester interface just above it. --- docs/features.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features.md b/docs/features.md index bb6e9d94..96c2ce98 100644 --- a/docs/features.md +++ b/docs/features.md @@ -318,9 +318,9 @@ A `RunAndReturn` method is also available on the expecter struct that allows you ```go requesterMock.EXPECT(). Get(mock.Anything). - RunAndReturn(func(path string) string { + RunAndReturn(func(path string) (string, error) { fmt.Println(path, "was called") - return "result for " + path + return ("result for " + path), nil }) ```