From dcc96e4b9403a3a1e135b81d5f556a72a04a2add Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 17 Mar 2021 18:02:26 -0700 Subject: [PATCH] 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 --- src/io/ioutil/tempfile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io/ioutil/tempfile.go b/src/io/ioutil/tempfile.go index 4b272e5a5d2..c43db2c080d 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) }