Skip to content

Commit a32b54a

Browse files
authored
chore: fix AfterFunc typos in README.md (#2)
1 parent f015c0f commit a32b54a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ For example, with a timer:
7373
```go
7474
fired := false
7575

76-
tmr := mClock.Afterfunc(time.Second, func() {
76+
tmr := mClock.AfterFunc(time.Second, func() {
7777
fired = true
7878
})
7979
mClock.Advance(time.Second)
@@ -86,7 +86,7 @@ goroutines, so _do not_ immediately assert the results:
8686
```go
8787
fired := false
8888

89-
tmr := mClock.Afterfunc(time.Second, func() {
89+
tmr := mClock.AfterFunc(time.Second, func() {
9090
fired = true
9191
})
9292
mClock.Advance(time.Second)
@@ -105,7 +105,7 @@ fired := false
105105
// set a test timeout so we don't wait the default `go test` timeout for a failure
106106
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
107107

108-
tmr := mClock.Afterfunc(time.Second, func() {
108+
tmr := mClock.AfterFunc(time.Second, func() {
109109
fired = true
110110
})
111111

0 commit comments

Comments
 (0)