diff --git a/match/max.go b/match/max.go index d72f69e..032ffbf 100644 --- a/match/max.go +++ b/match/max.go @@ -15,7 +15,7 @@ func NewMax(l int) Max { func (self Max) Match(s string) bool { var l int - for range s { + for _ = range s { l += 1 if l > self.Limit { return false diff --git a/match/min.go b/match/min.go index db57ac8..96b34cb 100644 --- a/match/min.go +++ b/match/min.go @@ -15,7 +15,7 @@ func NewMin(l int) Min { func (self Min) Match(s string) bool { var l int - for range s { + for _ = range s { l += 1 if l >= self.Limit { return true diff --git a/match/row.go b/match/row.go index d0dcb35..820a60d 100644 --- a/match/row.go +++ b/match/row.go @@ -43,7 +43,7 @@ func (self Row) matchAll(s string) bool { func (self Row) lenOk(s string) bool { var i int - for range s { + for _ = range s { i++ if i >= self.RunesLength { return true