From: Ian Lance Taylor Date: Thu, 18 Mar 2021 01:02:26 +0000 (-0700) Subject: io/ioutil: use correct Go version in redirection comments X-Git-Tag: go1.17beta1~1050 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=dcc96e4b9403a3a1e135b81d5f556a72a04a2add;p=gostls13.git 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 Run-TryBot: Ian Lance Taylor TryBot-Result: Go Bot Reviewed-by: Emmanuel Odeke --- 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) }