Skip to content

Commit cbdb354

Browse files
pellaredgopherbot
authored andcommitted
timer: fix Stop link in Timer.Reset doc comment
Change-Id: I0fccb18b2d5d3f7c86f026c988f90734546f7be0 GitHub-Last-Rev: a72cfe9 GitHub-Pull-Request: #69856 Reviewed-on: https://go-review.googlesource.com/c/go/+/619056 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]>
1 parent 5c1a68a commit cbdb354

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/time/sleep.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ func NewTimer(d Duration) *Timer {
165165
// to receive a time value corresponding to the previous timer settings;
166166
// if the program has not received from t.C already and the timer is
167167
// running, Reset is guaranteed to return true.
168-
// Before Go 1.23, the only safe way to use Reset was to [Stop] and
169-
// explicitly drain the timer first.
168+
// Before Go 1.23, the only safe way to use Reset was to call [Timer.Stop]
169+
// and explicitly drain the timer first.
170170
// See the [NewTimer] documentation for more details.
171171
func (t *Timer) Reset(d Duration) bool {
172172
if !t.initTimer {

0 commit comments

Comments
 (0)