From: Ian Lance Taylor Date: Tue, 26 Jan 2016 13:28:20 +0000 (-0800) Subject: time: fix comment about use of Location.cacheEnd X-Git-Tag: go1.6rc1~41 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=830143fa3dd344a72d5c00643983ab62abb88a72;p=gostls13.git time: fix comment about use of Location.cacheEnd Fixes #14099. Change-Id: I122e918bdc55fb185f4a4a797489b160219542d2 Reviewed-on: https://go-review.googlesource.com/18943 Run-TryBot: Ian Lance Taylor Reviewed-by: Russ Cox --- diff --git a/src/time/zoneinfo.go b/src/time/zoneinfo.go index c8e53a27cf..c56743933f 100644 --- a/src/time/zoneinfo.go +++ b/src/time/zoneinfo.go @@ -21,7 +21,7 @@ type Location struct { // To avoid the binary search through tx, keep a // static one-element cache that gives the correct // zone for the time when the Location was created. - // if cacheStart <= t <= cacheEnd, + // if cacheStart <= t < cacheEnd, // lookup can return cacheZone. // The units for cacheStart and cacheEnd are seconds // since January 1, 1970 UTC, to match the argument