From: zero.xu Date: Mon, 17 Aug 2020 07:06:32 +0000 (+0000) Subject: runtime: update comment: modTimer is called by Timer.Reset X-Git-Tag: go1.16beta1~1337 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=681559e1f10f83a053b4ebab101de3d77ede8353;p=gostls13.git runtime: update comment: modTimer is called by Timer.Reset Change-Id: I97d0d1343d41b603a68388e496411fb040dc6d66 GitHub-Last-Rev: d11177ad249bd844dd9e7e355eea28596d0b1fa8 GitHub-Pull-Request: golang/go#38625 Reviewed-on: https://go-review.googlesource.com/c/go/+/229767 Reviewed-by: Emmanuel Odeke --- diff --git a/src/runtime/time.go b/src/runtime/time.go index fdb5066b24..f895bf8443 100644 --- a/src/runtime/time.go +++ b/src/runtime/time.go @@ -403,7 +403,7 @@ func dodeltimer0(pp *p) { } // modtimer modifies an existing timer. -// This is called by the netpoll code or time.Ticker.Reset. +// This is called by the netpoll code or time.Ticker.Reset or time.Timer.Reset. // Reports whether the timer was modified before it was run. func modtimer(t *timer, when, period int64, f func(interface{}, uintptr), arg interface{}, seq uintptr) bool { if when < 0 {