Use more idiomatic <int> * <const> for intervals
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
a5b44952d93152ba6bfdb100ea30cd8446cad47e
|
||||
6fSHrYxpMu
|
||||
e10c601ab3b702dfcea728c1edb31673561484b5
|
||||
pybl9hRvJq2
|
||||
|
||||
Reference in New Issue
Block a user