1
0
mirror of https://github.com/golang/go synced 2024-09-29 02:14:29 -06:00

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.
This commit is contained in:
Ville Skyttä 2023-10-09 23:53:20 +03:00
parent 8222423e03
commit fba4cde636

View 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.