From fba4cde6362d1f0ea0c730d50fdd3fbaae4e17cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 9 Oct 2023 23:53:20 +0300 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. --- 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.