1
0
mirror of https://github.com/golang/go synced 2024-09-28 17:24:28 -06:00

src/time: fix typo in comment

This commit is contained in:
WuGuangyao 2024-03-20 21:10:11 +08:00
parent fba54f6345
commit 89736ae963

View 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.