Skip to content

Commit

Permalink
Merge pull request #771 from dlwyatt/patch-1
Browse files Browse the repository at this point in the history
Update features.md
  • Loading branch information
LandonTClipp committed Apr 2, 2024
2 parents f500645 + 9820fbb commit 59f7d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
```

Expand Down

0 comments on commit 59f7d94

Please sign in to comment.