]> Cypherpunks repositories - gostls13.git/commitdiff
timer: fix Stop link in Timer.Reset doc comment
authorRobert PajÄ…k <pellared@hotmail.com>
Mon, 14 Oct 2024 20:30:20 +0000 (20:30 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 14 Oct 2024 21:03:43 +0000 (21:03 +0000)
Change-Id: I0fccb18b2d5d3f7c86f026c988f90734546f7be0
GitHub-Last-Rev: a72cfe970e74dd3a9fffec9604ae58126514542c
GitHub-Pull-Request: golang/go#69856
Reviewed-on: https://go-review.googlesource.com/c/go/+/619056
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>

src/time/sleep.go

index d128efb0f1497bcdada33690d67a655c7ed0d9a2..e9cd483be5d2b09c2b69f4be04a8658ad8449481 100644 (file)
@@ -165,8 +165,8 @@ func NewTimer(d Duration) *Timer {
 // to receive a time value corresponding to the previous timer settings;
 // if the program has not received from t.C already and the timer is
 // running, Reset is guaranteed to return true.
-// Before Go 1.23, the only safe way to use Reset was to [Stop] and
-// explicitly drain the timer first.
+// Before Go 1.23, the only safe way to use Reset was to call [Timer.Stop]
+// and explicitly drain the timer first.
 // See the [NewTimer] documentation for more details.
 func (t *Timer) Reset(d Duration) bool {
        if !t.initTimer {