Skip to content

Commit 4e31eb5

Browse files
committed
fix: grammar and typos in README.md
1 parent 67a3ba4 commit 4e31eb5

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
@@ -51,7 +51,7 @@ I wondered if it were possible, and it was. Had I searched online first, I would
5151

5252
### Can I use this to mock test functions?
5353

54-
Yes, but real implementations are almost always better than mocks. If you really must have a mock, use a package meant for that ([github.com/stretchr/testify/mock](https://pkg.go.dev/github.com/stretchr/testify/mock) or [github.com/uber-go/mock](https://pkg.go.dev/github.com/uber-go/mock) to name a couple). If you want to mock time in particular, try [syntest](https://pkg.go.dev/testing/synctest#hdr-Time).
54+
Yes, but real implementations are almost always better than mocks. If you really must have a mock, use a package meant for that ([github.com/stretchr/testify/mock](https://pkg.go.dev/github.com/stretchr/testify/mock) or [github.com/uber-go/mock](https://pkg.go.dev/github.com/uber-go/mock) to name a couple). And if you want to mock time in particular, try [synctest](https://pkg.go.dev/testing/synctest#hdr-Time).
5555

5656
Or just use a function pointer in your code:
5757

0 commit comments

Comments
 (0)