Use more idiomatic <int> * <const> for intervals

This commit is contained in:
Mark McGranaghan
2018-02-09 14:14:25 -08:00
parent 1d272218fd
commit 01a5f6de68
15 changed files with 37 additions and 37 deletions

View File

@@ -15,7 +15,7 @@ func main() {
// tell the timer how long you want to wait, and it
// provides a channel that will be notified at that
// time. This timer will wait 2 seconds.
timer1 := time.NewTimer(time.Second * 2)
timer1 := time.NewTimer(2 * time.Second)
// The `<-timer1.C` blocks on the timer's channel `C`
// until it sends a value indicating that the timer

View File

@@ -1,2 +1,2 @@
a5b44952d93152ba6bfdb100ea30cd8446cad47e
6fSHrYxpMu
e10c601ab3b702dfcea728c1edb31673561484b5
pybl9hRvJq2