From 001fe7f33f1d7aed9e3a047bd8e784bdc103c28c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 19 Nov 2019 16:14:50 -0800 Subject: [PATCH] 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 --- src/time/sleep.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;