Skip to content

Commit 655fec7

Browse files
committed
tour: link to time doc for After/Tick
On the tour slide "tour/concurrency/6" ("Default Selection") the example code in "default-selection.go" uses time.After() and time.Tick() without any mention of what they do. A link to the time fuctions doc can provide context to understand what those do. Add link to time#pkg-functions on slide next to code using time.After()/Tick(). Fixes golang/tour#1466
1 parent 710879a commit 655fec7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_content/tour/concurrency.article

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ Use a `default` case to try a send or receive without blocking:
9090
// receiving from c would block
9191
}
9292

93+
The [[https://pkg.go.dev/time#pkg-functions][`time` package documentation]] may be helpful.
94+
9395
.play concurrency/default-selection.go
9496

9597
* Exercise: Equivalent Binary Trees

0 commit comments

Comments
 (0)