]> Cypherpunks repositories - gostls13.git/commitdiff
io/ioutil: use correct Go version in redirection comments
authorIan Lance Taylor <iant@golang.org>
Thu, 18 Mar 2021 01:02:26 +0000 (18:02 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 19 Mar 2021 01:02:56 +0000 (01:02 +0000)
Change-Id: I282f428137ca3360a58167c94e26f3dfdf59fb63
Reviewed-on: https://go-review.googlesource.com/c/go/+/302756
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
src/io/ioutil/tempfile.go

index 4b272e5a5d20033fc2bd9bac8293f233469a5621..c43db2c080d69e01c5eb2eee869b877ca3aa07b8 100644 (file)
@@ -20,7 +20,7 @@ import (
 // to find the pathname of the file. It is the caller's responsibility
 // to remove the file when no longer needed.
 //
-// As of Go 1.16, this function simply calls os.CreateTemp.
+// As of Go 1.17, this function simply calls os.CreateTemp.
 func TempFile(dir, pattern string) (f *os.File, err error) {
        return os.CreateTemp(dir, pattern)
 }
@@ -35,7 +35,7 @@ func TempFile(dir, pattern string) (f *os.File, err error) {
 // will not choose the same directory. It is the caller's responsibility
 // to remove the directory when no longer needed.
 //
-// As of Go 1.16, this function simply calls os.MkdirTemp.
+// As of Go 1.17, this function simply calls os.MkdirTemp.
 func TempDir(dir, pattern string) (name string, err error) {
        return os.MkdirTemp(dir, pattern)
 }