diff options
Diffstat (limited to 'libgo/go/math/bits/make_examples.go')
-rw-r--r-- | libgo/go/math/bits/make_examples.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/math/bits/make_examples.go b/libgo/go/math/bits/make_examples.go index cd81cd6..1d3ad53 100644 --- a/libgo/go/math/bits/make_examples.go +++ b/libgo/go/math/bits/make_examples.go @@ -11,9 +11,9 @@ package main import ( "bytes" "fmt" - "io/ioutil" "log" "math/bits" + "os" ) const header = `// Copyright 2017 The Go Authors. All rights reserved. @@ -106,7 +106,7 @@ func main() { } } - if err := ioutil.WriteFile("example_test.go", w.Bytes(), 0666); err != nil { + if err := os.WriteFile("example_test.go", w.Bytes(), 0666); err != nil { log.Fatal(err) } } |