summaryrefslogtreecommitdiff
path: root/src/lib/time/tick.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/time/tick.go')
-rw-r--r--src/lib/time/tick.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/time/tick.go b/src/lib/time/tick.go
index f3df11c45..a4cb786c5 100644
--- a/src/lib/time/tick.go
+++ b/src/lib/time/tick.go
@@ -18,14 +18,14 @@ import (
// Also, if timeouts become part of the select statement,
// perhaps the Ticker is just:
//
-// func Ticker(ns int64, c *chan int64) {
+// func Ticker(ns int64, c chan int64) {
// for {
// select { timeout ns: }
// nsec, err := time.Nanoseconds();
// c <- nsec;
// }
-func Ticker(ns int64, c *chan int64) {
+func Ticker(ns int64, c chan int64) {
var tv syscall.Timeval;
now := time.Nanoseconds();
when := now;
@@ -49,7 +49,7 @@ func Ticker(ns int64, c *chan int64) {
}
}
-export func Tick(ns int64) *chan int64 {
+export func Tick(ns int64) chan int64 {
if ns <= 0 {
return nil
}