From 1f89cdc69a1df928ca3e290b4fb8672f1d862f17 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Sat, 28 Jan 2023 14:10:29 -0800 Subject: [PATCH] main: fix vet error --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 517004c..0f5a266 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,6 @@ import ( "flag" "fmt" "io" - "io/ioutil" "os" "os/exec" "strings" @@ -131,7 +130,7 @@ func main() { } } checkError(bs.Err(), "reading markdown file") - f, err := ioutil.TempFile("", "chroma-markdown-") + f, err := os.CreateTemp("", "chroma-markdown-") checkError(err, "creating temporary file") w := bufio.NewWriter(f) if needCSS && *css != "" {