From 2203809e5e1d0a541d66535a0c9ea853dbd92ef4 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Tue, 11 Jan 2022 20:23:59 +0800 Subject: [PATCH] chore: fix typo (#1437) --- core/limit/tokenlimit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/limit/tokenlimit.go b/core/limit/tokenlimit.go index a41a6090..dcab984b 100644 --- a/core/limit/tokenlimit.go +++ b/core/limit/tokenlimit.go @@ -85,8 +85,8 @@ func (lim *TokenLimiter) Allow() bool { } // AllowN reports whether n events may happen at time now. -// Use this method if you intend to drop / skip events that exceed the rate rate. -// Otherwise use Reserve or Wait. +// Use this method if you intend to drop / skip events that exceed the rate. +// Otherwise, use Reserve or Wait. func (lim *TokenLimiter) AllowN(now time.Time, n int) bool { return lim.reserveN(now, n) }