diff options
Diffstat (limited to 'libgo/go/time/tick.go')
-rw-r--r-- | libgo/go/time/tick.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/time/tick.go b/libgo/go/time/tick.go index 852bae9c935..92f9eb893e4 100644 --- a/libgo/go/time/tick.go +++ b/libgo/go/time/tick.go @@ -5,7 +5,7 @@ package time import ( - "os" + "errors" "sync" ) @@ -160,7 +160,7 @@ var onceStartTickerLoop sync.Once // ns must be greater than zero; if not, NewTicker will panic. func NewTicker(ns int64) *Ticker { if ns <= 0 { - panic(os.NewError("non-positive interval for NewTicker")) + panic(errors.New("non-positive interval for NewTicker")) } c := make(chan int64, 1) // See comment on send in tickerLoop t := &Ticker{ |