1
0
mirror of https://github.com/golang/go synced 2024-11-11 18:31:38 -07:00

time: fix some typos in CL 512355

Change-Id: I6e2e62931f37a5b0880b4c09be84f5e54e969bc7
This commit is contained in:
Jes Cok 2024-08-02 07:32:31 +08:00
parent 67c3f012cf
commit 03658dd974
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ type timer struct {
// The arg and seq are client-specified opaque arguments passed back to f.
// When used from netpoll, arg and seq have meanings defined by netpoll
// and are completely opaque to this code; in that context, seq is a sequence
// number to recognize and squech stale function invocations.
// number to recognize and squelch stale function invocations.
// When used from package time, arg is a channel (for After, NewTicker)
// or the function to call (for AfterFunc) and seq is unused (0).
//

View File

@ -180,7 +180,7 @@ func (t *Timer) Reset(d Duration) bool {
func sendTime(c any, seq uintptr, delta int64) {
// delta is how long ago the channel send was supposed to happen.
// The current time can be arbitrarily far into the future, because the runtime
// can delay a sendTime call until a goroutines tries to receive from
// can delay a sendTime call until a goroutine tries to receive from
// the channel. Subtract delta to go back to the old time that we
// used to send.
select {