We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c1a68a commit cbdb354Copy full SHA for cbdb354
src/time/sleep.go
@@ -165,8 +165,8 @@ func NewTimer(d Duration) *Timer {
165
// to receive a time value corresponding to the previous timer settings;
166
// if the program has not received from t.C already and the timer is
167
// 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.
+// Before Go 1.23, the only safe way to use Reset was to call [Timer.Stop]
+// and explicitly drain the timer first.
170
// See the [NewTimer] documentation for more details.
171
func (t *Timer) Reset(d Duration) bool {
172
if !t.initTimer {
0 commit comments