aboutsummaryrefslogtreecommitdiff
path: root/src/time
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2020-07-05 16:34:27 -0400
committerRuss Cox <rsc@golang.org>2020-10-13 00:55:35 +0000
commit84f3b33f10d8f12818975cb188da46145ac2036a (patch)
treefc2157888909a0c04d8f6c4a3974ddb662423a12 /src/time
parent5ef78c4d84620f6594ad63cbd1b3b43f41670636 (diff)
downloadgo-84f3b33f10d8f12818975cb188da46145ac2036a.tar.gz
go-84f3b33f10d8f12818975cb188da46145ac2036a.zip
syscall: remove dependency on io
Keep syscall and io separated; neither should depend on the other. Change-Id: Icdd61bd0c05d874cabd7b5ae6631dd09dec90112 Reviewed-on: https://go-review.googlesource.com/c/go/+/243902 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/time')
-rw-r--r--src/time/zoneinfo_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/zoneinfo_windows.go b/src/time/zoneinfo_windows.go
index 2b69d06a1d..ba66f90ffe 100644
--- a/src/time/zoneinfo_windows.go
+++ b/src/time/zoneinfo_windows.go
@@ -67,7 +67,7 @@ func toEnglishName(stdname, dstname string) (string, error) {
}
defer k.Close()
- names, err := k.ReadSubKeyNames(-1)
+ names, err := k.ReadSubKeyNames()
if err != nil {
return "", err
}