diff options
Diffstat (limited to 'src/time')
-rw-r--r-- | src/time/sleep.go | 1 |
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 |