summaryrefslogtreecommitdiff
path: root/src/time/sleep.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/sleep.go')
-rw-r--r--src/time/sleep.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/time/sleep.go b/src/time/sleep.go
index 33c349de4..61660d14f 100644
--- a/src/time/sleep.go
+++ b/src/time/sleep.go
@@ -43,6 +43,7 @@ func stopTimer(*runtimeTimer) bool
// The Timer type represents a single event.
// When the Timer expires, the current time will be sent on C,
// unless the Timer was created by AfterFunc.
+// A Timer must be created with NewTimer or AfterFunc.
type Timer struct {
C <-chan Time
r runtimeTimer