From 7423d60977607c351167c4862640288462a2ce1b Mon Sep 17 00:00:00 2001 From: Carlos Cobo <699969+toqueteos@users.noreply.github.com> Date: Mon, 15 Jul 2024 22:43:32 +0200 Subject: [PATCH] chore: fix AfterFunc typos in README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8d467af..f0703c4 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ For example, with a timer: ```go fired := false -tmr := mClock.Afterfunc(time.Second, func() { +tmr := mClock.AfterFunc(time.Second, func() { fired = true }) mClock.Advance(time.Second) @@ -86,7 +86,7 @@ goroutines, so _do not_ immediately assert the results: ```go fired := false -tmr := mClock.Afterfunc(time.Second, func() { +tmr := mClock.AfterFunc(time.Second, func() { fired = true }) mClock.Advance(time.Second) @@ -105,7 +105,7 @@ fired := false // set a test timeout so we don't wait the default `go test` timeout for a failure ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) -tmr := mClock.Afterfunc(time.Second, func() { +tmr := mClock.AfterFunc(time.Second, func() { fired = true })