aboutsummaryrefslogtreecommitdiff
path: root/src/io
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-03-17 18:02:26 -0700
committerIan Lance Taylor <iant@golang.org>2021-03-19 01:02:56 +0000
commitdcc96e4b9403a3a1e135b81d5f556a72a04a2add (patch)
treef61ab5c7047ce9856fe1c1538d6560bde56de751 /src/io
parent90b1ed1602ad8db08a5b1bde4aae5f8569b21915 (diff)
downloadgo-dcc96e4b9403a3a1e135b81d5f556a72a04a2add.tar.gz
go-dcc96e4b9403a3a1e135b81d5f556a72a04a2add.zip
io/ioutil: use correct Go version in redirection comments
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>
Diffstat (limited to 'src/io')
-rw-r--r--src/io/ioutil/tempfile.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io/ioutil/tempfile.go b/src/io/ioutil/tempfile.go
index 4b272e5a5d..c43db2c080 100644
--- a/src/io/ioutil/tempfile.go
+++ b/src/io/ioutil/tempfile.go
@@ -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)
}