From cdbe2e4c8b10f791087ea69c43df1b70532361e0 Mon Sep 17 00:00:00 2001 From: dab00 Date: Sun, 11 Aug 2019 20:03:18 +0300 Subject: [PATCH] update error message --- counter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/counter.go b/counter.go index 40ddeb5..aec8a74 100644 --- a/counter.go +++ b/counter.go @@ -26,7 +26,7 @@ func (e counterError) Error() string { const ErrInvalidTTL = counterError("counter: TTL must be greater than or equal to 1 millisecond") // ErrInvalidLimit is the error returned when NewCounter receives invalid value of limit. -const ErrInvalidLimit = counterError("counter: limit must be greater than zero") +const ErrInvalidLimit = counterError("counter: limit must be greater than 0") // ErrInvalidKey is the error returned when key size is greater than 512 MB. const ErrInvalidKey = counterError("counter: key size must be less than or equal to 512 MB")