mirror of
https://github.com/golang/go
synced 2024-11-23 00:00:07 -07:00
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>
This commit is contained in:
parent
90b1ed1602
commit
dcc96e4b94
@ -20,7 +20,7 @@ import (
|
|||||||
// to find the pathname of the file. It is the caller's responsibility
|
// to find the pathname of the file. It is the caller's responsibility
|
||||||
// to remove the file when no longer needed.
|
// 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) {
|
func TempFile(dir, pattern string) (f *os.File, err error) {
|
||||||
return os.CreateTemp(dir, pattern)
|
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
|
// will not choose the same directory. It is the caller's responsibility
|
||||||
// to remove the directory when no longer needed.
|
// 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) {
|
func TempDir(dir, pattern string) (name string, err error) {
|
||||||
return os.MkdirTemp(dir, pattern)
|
return os.MkdirTemp(dir, pattern)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user