Skip to content

Commit fab5889

Browse files
authored
Merge pull request #140 from Wani4ka/fix/when-then-typo
Fix typo in when/then example
2 parents 2a4ef14 + ce5fc96 commit fab5889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ formatterMock.FormatMock.When("Hi %s!", "there").Then("Hi there!")
157157
alternatively you can use the one-liner:
158158

159159
```go
160-
formatterMock = NewFormatterMock(mc).When("Hello %s!", "world").Then("Hello world!").When("Hi %s!", "there").Then("Hi there!")
160+
formatterMock = NewFormatterMock(mc).FormatMock.When("Hello %s!", "world").Then("Hello world!").FormatMock.When("Hi %s!", "there").Then("Hi there!")
161161
```
162162

163163
### Setting up a mock using the Set method:

0 commit comments

Comments
 (0)