]> Cypherpunks repositories - gostls13.git/commitdiff
time: fix some typos in CL 512355
authorJes Cok <xigua67damn@gmail.com>
Thu, 1 Aug 2024 23:42:58 +0000 (23:42 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 2 Aug 2024 14:34:04 +0000 (14:34 +0000)
Change-Id: Id0fb180a2d7910cdff7f4ab7154d9ceeb2f1cb71
GitHub-Last-Rev: 03658dd9747684f69ea238a8d1d7f7d15446099e
GitHub-Pull-Request: golang/go#68709
Reviewed-on: https://go-review.googlesource.com/c/go/+/602675
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/runtime/time.go
src/time/sleep.go

index 79f0514c6eec0af57559b69284c28be6222ef118..abaf99aec51ac15d513bd52bf680afe23a18efb5 100644 (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).
        //
index 7e2fa0c20af46e2132aa9f4ea017987fd6eca212..d128efb0f1497bcdada33690d67a655c7ed0d9a2 100644 (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 {