From f2685395447035c8f63690e88f12ab76d100f451 Mon Sep 17 00:00:00 2001 From: WuGuangyao Date: Wed, 20 Mar 2024 13:27:30 +0000 Subject: [PATCH] time: fix typo in comment Change-Id: I3a9779e8d3d43f60c7c5183e0b84870bc8170c3f GitHub-Last-Rev: 89736ae96372c6c89dbd7c98e69c41a61302814e GitHub-Pull-Request: golang/go#66424 Reviewed-on: https://go-review.googlesource.com/c/go/+/572976 Reviewed-by: Ian Lance Taylor Run-TryBot: Emmanuel Odeke TryBot-Result: Gopher Robot Reviewed-by: Emmanuel Odeke Auto-Submit: Emmanuel Odeke LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor Reviewed-by: David Chase --- src/time/sleep.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time/sleep.go b/src/time/sleep.go index 669660f90e..73fdf2a782 100644 --- a/src/time/sleep.go +++ b/src/time/sleep.go @@ -128,7 +128,7 @@ func (t *Timer) Stop() bool { // The Stop method is no longer necessary to help the garbage collector. // (Code may of course still want to call Stop to stop the timer for other reasons.) // -// Before Go 1.23, the channel assocated with a Timer was +// Before Go 1.23, the channel associated with a Timer was // asynchronous (buffered, capacity 1), which meant that // stale time values could be received even after [Timer.Stop] // or [Timer.Reset] returned. -- 2.50.0