diff options
author | Ian Lance Taylor <iant@golang.org> | 2019-11-19 16:14:50 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2019-12-17 00:18:33 +0000 |
commit | 001fe7f33f1d7aed9e3a047bd8e784bdc103c28c (patch) | |
tree | 8f2c22ab3030c8b14fb38503afd4dfba649b77e6 | |
parent | f7f9866f34111b1e5d6c67e7af4de64ecb685f9e (diff) | |
download | go-001fe7f33f1d7aed9e3a047bd8e784bdc103c28c.tar.gz go-001fe7f33f1d7aed9e3a047bd8e784bdc103c28c.zip |
time: further clarifications to the (*Timer).Stop docs
Fixes #35627
Change-Id: I0c5fed46a69a9663e46a9414468ec610063ea05a
Reviewed-on: https://go-review.googlesource.com/c/go/+/207849
Reviewed-by: Rob Pike <r@golang.org>
-rw-r--r-- | src/time/sleep.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/sleep.go b/src/time/sleep.go index 4e61d0a6c1..37de846b11 100644 --- a/src/time/sleep.go +++ b/src/time/sleep.go @@ -64,7 +64,7 @@ type Timer struct { // } // // This cannot be done concurrent to other receives from the Timer's -// channel. +// channel or other calls to the Timer's Stop method. // // For a timer created with AfterFunc(d, f), if t.Stop returns false, then the timer // has already expired and the function f has been started in its own goroutine; |