]> Cypherpunks.ru repositories - gostls13.git/commitdiff
testing: remove unnecessary TempDir implementation detail from its doc
authorVille Skyttä <ville.skytta@iki.fi>
Mon, 9 Oct 2023 21:03:10 +0000 (21:03 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 10 Oct 2023 00:25:53 +0000 (00:25 +0000)
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 <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/testing/testing.go

index d89a99454dd755596e3b3e5fea44dd23abe207fe..2a80bf26f497621483499bce6f1bafff903763a6 100644 (file)
@@ -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.