]> Cypherpunks repositories - gostls13.git/commitdiff
time: fix comment about use of Location.cacheEnd
authorIan Lance Taylor <iant@golang.org>
Tue, 26 Jan 2016 13:28:20 +0000 (05:28 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 26 Jan 2016 15:16:47 +0000 (15:16 +0000)
Fixes #14099.

Change-Id: I122e918bdc55fb185f4a4a797489b160219542d2
Reviewed-on: https://go-review.googlesource.com/18943
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/time/zoneinfo.go

index c8e53a27cf02328ffc8a16909e95dcbea219765d..c56743933f92d0ff62e0d7d1b98c9b71c5f91c4e 100644 (file)
@@ -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