From b201cf4afa01e97b53afc383b2815ed7a0db147c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ville=20Skytt=C3=A4?= Date: Mon, 9 Oct 2023 21:03:10 +0000 Subject: [PATCH] testing: remove unnecessary TempDir implementation detail from its doc The "by Cleanup" detail about the removal mechanism is not necessary for users. The previous wording could even cause confusion whether they should do something for Cleanup to occur. Change-Id: I617a7a4e118a70a3ad8a83a2d81cd911dde8ee08 GitHub-Last-Rev: fba4cde6362d1f0ea0c730d50fdd3fbaae4e17cf GitHub-Pull-Request: golang/go#63479 Reviewed-on: https://go-review.googlesource.com/c/go/+/534016 Auto-Submit: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor --- src/testing/testing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/testing.go b/src/testing/testing.go index d89a99454d..2a80bf26f4 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -1173,7 +1173,7 @@ func (c *common) Cleanup(f func()) { } // TempDir returns a temporary directory for the test to use. -// The directory is automatically removed by Cleanup when the test and +// The directory is automatically removed when the test and // all its subtests complete. // Each subsequent call to t.TempDir returns a unique directory; // if the directory creation fails, TempDir terminates the test by calling Fatal. -- 2.50.0