update Timer.Stop documentation

This commit is contained in:
Caleb Martinez 2018-07-11 09:39:28 -04:00 committed by GitHub
parent 3a9d4ecb93
commit e4649847e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ func NewTicker(d Duration) *Ticker {
}
// Stop turns off a ticker. After Stop, no more ticks will be sent.
// Stop does not close the channel. This prevents a concurrent goroutine
// (reading from said channel) from seeing a read succeed incorrectly.
// Stop does not close the channel, to prevent a concurrent goroutine
// reading from the channel from seeing an erroneous "tick".
func (t *Ticker) Stop() {
stopTimer(&t.r)
}