Update timeouts.go: Fix typo

This commit is contained in:
szTheory 2020-06-13 12:42:00 +00:00 committed by GitHub
parent 448c597a58
commit 7823e44fc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ func main() {
}()
// Here's the `select` implementing a timeout.
// `res := <-c1` awaits the result and `<-Time.After`
// `res := <-c1` awaits the result and `<-time.After`
// awaits a value to be sent after the timeout of
// 1s. Since `select` proceeds with the first
// receive that's ready, we'll take the timeout case