]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix comments in time.go
authorAlexander Morozov <lk4d4math@gmail.com>
Tue, 25 Oct 2016 21:37:54 +0000 (14:37 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 26 Oct 2016 03:51:33 +0000 (03:51 +0000)
Change-Id: I5c501f598f41241e6d7b21d98a126827a3c3ad9a
Reviewed-on: https://go-review.googlesource.com/32018
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/time.go

index 8df185dc8fd6056d2c9986fdbbcb5d6bbab5e01e..604ccded8953ba96737d2dc4808c201aa40d062d 100644 (file)
@@ -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 {