Skip to content

time: incorrect comment/documentation in time.Location #14099

@msimonsson

Description

@msimonsson

Hi,

In:
https://github.com/golang/go/blob/master/src/time/zoneinfo.go#L24

// if cacheStart <= t <= cacheEnd,
// lookup can return cacheZone.

This should be:

// if cacheStart <= t < cacheEnd,

For actual code:

https://github.com/golang/go/blob/master/src/time/zoneinfo.go#L120

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions