aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2021-06-10 15:14:01 -0400
committerRuss Cox <rsc@golang.org>2021-06-17 03:25:37 +0000
commitb0355a3e72df384c82a688524c603a97c1d8e7a7 (patch)
treeca53b046fdfdc919dc2a969e531ea4793f1cc8cb /api
parent881b6ea7baaa38f54a1dbd989fd21a638d0e118d (diff)
downloadgo-b0355a3e72df384c82a688524c603a97c1d8e7a7.tar.gz
go-b0355a3e72df384c82a688524c603a97c1d8e7a7.zip
time: fix receiver for Time.IsDST method
Only methods that modify the time take pointer receivers; IsDST does not modify it and therefore should not. For #42102 and #46688. Change-Id: I4721ef7f4d7572236ae6e4d99a459b9ffb11999e Reviewed-on: https://go-review.googlesource.com/c/go/+/326789 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'api')
-rw-r--r--api/go1.17.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/go1.17.txt b/api/go1.17.txt
index f054458715..257ca271d3 100644
--- a/api/go1.17.txt
+++ b/api/go1.17.txt
@@ -153,7 +153,7 @@ pkg time, const Layout = "01/02 03:04:05PM '06 -0700"
pkg time, const Layout ideal-string
pkg time, func UnixMicro(int64) Time
pkg time, func UnixMilli(int64) Time
-pkg time, method (*Time) IsDST() bool
+pkg time, method (Time) IsDST() bool
pkg time, method (Time) GoString() string
pkg time, method (Time) UnixMicro() int64
pkg time, method (Time) UnixMilli() int64