aboutsummaryrefslogtreecommitdiff
path: root/src/time/genzabbrs.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/genzabbrs.go')
-rw-r--r--src/time/genzabbrs.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/time/genzabbrs.go b/src/time/genzabbrs.go
index 38397f91b7..1d59ba73ce 100644
--- a/src/time/genzabbrs.go
+++ b/src/time/genzabbrs.go
@@ -17,6 +17,7 @@ import (
"encoding/xml"
"flag"
"go/format"
+ "io"
"io/ioutil"
"log"
"net/http"
@@ -71,7 +72,7 @@ func readWindowsZones() ([]*zone, error) {
}
defer r.Body.Close()
- data, err := ioutil.ReadAll(r.Body)
+ data, err := io.ReadAll(r.Body)
if err != nil {
return nil, err
}