Fixed comment in tickers.go

This commit is contained in:
Jerry Kotas 2019-10-10 15:38:15 -04:00
parent 82287d9903
commit 4076ee15e5

View File

@ -15,8 +15,8 @@ func main() {
// Tickers use a similar mechanism to timers: a
// channel that is sent values. Here we'll use the
// `range` builtin on the channel to iterate over
// the values as they arrive every 500ms.
// `select` builtin on the channel to await the
// values as they arrive every 500ms.
ticker := time.NewTicker(500 * time.Millisecond)
done := make(chan bool)