fix language in comments

found through goreportcard.com
This commit is contained in:
Mechiel Lukkien
2023-05-22 15:04:06 +02:00
parent b0623e6038
commit 1f5ab1b795
4 changed files with 6 additions and 6 deletions

View File

@ -84,7 +84,7 @@ func (l *Limiter) checkAdd(add bool, ip net.IP, tm time.Time, n int64) bool {
return true
}
// Reset sets the counter to 0 for key and ip, and substracts from the ipmasked counts.
// Reset sets the counter to 0 for key and ip, and subtracts from the ipmasked counts.
func (l *Limiter) Reset(ip net.IP, tm time.Time) {
l.Lock()
defer l.Unlock()