rate: simplify function advance only returns new Tokens to caller

Change the advance method to stop returning the newT result,
because it is always the same as the t argument.

Change-Id: Ib04017715d9f38f4ef6b908cb3d3b09af01b50b7
GitHub-Last-Rev: 1bc7316b96ca2d8e94f64f30db74536fe2fbe58f
GitHub-Pull-Request: golang/time#24
Reviewed-on: https://go-review.googlesource.com/c/time/+/645995
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
1 file changed
tree: a0a2c4d921c9995cb54f2488981e94a4255498bc
  1. rate/
  2. CONTRIBUTING.md
  3. go.mod
  4. LICENSE
  5. PATENTS
  6. README.md
README.md

Go Time

Go Reference

This repository provides supplementary Go time packages.

Report Issues / Send Patches

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

The git repository is https://go.googlesource.com/time.

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