]> Cypherpunks repositories - gostls13.git/commitdiff
time: fix typo in comment
authorWuGuangyao <wuguangyaocoder@gmail.com>
Wed, 20 Mar 2024 13:27:30 +0000 (13:27 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 21 Mar 2024 09:29:20 +0000 (09:29 +0000)
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 <iant@google.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Auto-Submit: Emmanuel Odeke <emmanuel@orijtech.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/time/sleep.go

index 669660f90e935f97edd68aaf2784a110749d7c23..73fdf2a7829634a6f701fdcc4ce93f0b7b753e3e 100644 (file)
@@ -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.