Merge pull request #3545 from thaJeztah/fix_godoc

cli/command: fix documentation of CopyToFile mentioning ioutil
This commit is contained in:
Nicolas De loof 2022-04-08 15:26:31 +02:00 committed by GitHub
commit 6a407c53de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ import (
// CopyToFile writes the content of the reader to the specified file // CopyToFile writes the content of the reader to the specified file
func CopyToFile(outfile string, r io.Reader) error { func CopyToFile(outfile string, r io.Reader) error {
// We use sequential file access here to avoid depleting the standby list // We use sequential file access here to avoid depleting the standby list
// on Windows. On Linux, this is a call directly to ioutil.TempFile // on Windows. On Linux, this is a call directly to os.CreateTemp
tmpFile, err := system.TempFileSequential(filepath.Dir(outfile), ".docker_temp_") tmpFile, err := system.TempFileSequential(filepath.Dir(outfile), ".docker_temp_")
if err != nil { if err != nil {
return err return err