x/time/rate: handle zero limit correctly

Fixes golang/go#39984

Change-Id: Iee82550fd6f141b22afcf96aea41ec2ff3e98e9a
Reviewed-on: https://go-review.googlesource.com/c/time/+/323429
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Carlos Amedee <carlos@golang.org>
2 files changed
tree: 98b5f5fc3932c4271a4f848063ba3f5d59095267
  1. AUTHORS
  2. CONTRIBUTING.md
  3. CONTRIBUTORS
  4. LICENSE
  5. PATENTS
  6. README.md
  7. go.mod
  8. rate/
README.md

Go Time

Go Reference

This repository provides supplementary Go time packages.

Download/Install

The easiest way to install is to run go get -u golang.org/x/time. You can also manually git clone the repository to $GOPATH/src/golang.org/x/time.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/time:” in the subject line, so it is easy to find.