aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/testdata/testprog/memprof.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/testdata/testprog/memprof.go')
-rw-r--r--src/runtime/testdata/testprog/memprof.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/testdata/testprog/memprof.go b/src/runtime/testdata/testprog/memprof.go
index 7b134bc078..0392e60f84 100644
--- a/src/runtime/testdata/testprog/memprof.go
+++ b/src/runtime/testdata/testprog/memprof.go
@@ -7,7 +7,6 @@ package main
import (
"bytes"
"fmt"
- "io/ioutil"
"os"
"runtime"
"runtime/pprof"
@@ -31,7 +30,7 @@ func MemProf() {
runtime.GC()
- f, err := ioutil.TempFile("", "memprof")
+ f, err := os.CreateTemp("", "memprof")
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(2)