]> Cypherpunks.ru repositories - gostls13.git/commit
time: fix receiver for Time.IsDST method
authorRuss Cox <rsc@golang.org>
Thu, 10 Jun 2021 19:14:01 +0000 (15:14 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 17 Jun 2021 03:25:37 +0000 (03:25 +0000)
commitb0355a3e72df384c82a688524c603a97c1d8e7a7
treeca53b046fdfdc919dc2a969e531ea4793f1cc8cb
parent881b6ea7baaa38f54a1dbd989fd21a638d0e118d
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>
api/go1.17.txt
src/time/time.go