From: Alexander Morozov Date: Tue, 25 Oct 2016 21:37:54 +0000 (-0700) Subject: runtime: fix comments in time.go X-Git-Tag: go1.8beta1~611 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2481481ff798636907376bfdf7e8c7558b8b930e;p=gostls13.git runtime: fix comments in time.go Change-Id: I5c501f598f41241e6d7b21d98a126827a3c3ad9a Reviewed-on: https://go-review.googlesource.com/32018 Reviewed-by: Ian Lance Taylor --- diff --git a/src/runtime/time.go b/src/runtime/time.go index 8df185dc8f..604ccded89 100644 --- a/src/runtime/time.go +++ b/src/runtime/time.go @@ -88,12 +88,12 @@ func addtimer(t *timer) { unlock(&timers.lock) } -// Add a timer to the heap and start or kick the timer proc. -// If the new timer is earlier than any of the others. +// Add a timer to the heap and start or kick timerproc if the new timer is +// earlier than any of the others. // Timers are locked. func addtimerLocked(t *timer) { // when must never be negative; otherwise timerproc will overflow - // during its delta calculation and never expire other runtime·timers. + // during its delta calculation and never expire other runtime timers. if t.when < 0 { t.when = 1<<63 - 1 } @@ -150,7 +150,7 @@ func deltimer(t *timer) bool { // Timerproc runs the time-driven events. // It sleeps until the next event in the timers heap. -// If addtimer inserts a new earlier event, addtimer1 wakes timerproc early. +// If addtimer inserts a new earlier event, it wakes timerproc early. func timerproc() { timers.gp = getg() for {