]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: update comment: modTimer is called by Timer.Reset
authorzero.xu <zero.xu@bytedance.com>
Mon, 17 Aug 2020 07:06:32 +0000 (07:06 +0000)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Mon, 17 Aug 2020 07:15:50 +0000 (07:15 +0000)
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 <emm.odeke@gmail.com>
src/runtime/time.go

index fdb5066b24f31718d7db566c4ac5821efbf911b6..f895bf8443c2b554d56f07742cef14ad62edb682 100644 (file)
@@ -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 {