From 2daa367ce6e4801667a31007d05cb976561e3015 Mon Sep 17 00:00:00 2001 From: dmaiocchi Date: Fri, 22 Jan 2021 16:03:20 +0100 Subject: [PATCH] Improve comment based on suggesitons Signed-off-by: dmaiocchi --- interceptors/ratelimit/ratelimit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interceptors/ratelimit/ratelimit.go b/interceptors/ratelimit/ratelimit.go index 54df8921a..90b3db820 100644 --- a/interceptors/ratelimit/ratelimit.go +++ b/interceptors/ratelimit/ratelimit.go @@ -9,7 +9,7 @@ import ( ) // Limiter defines the interface to perform request rate limiting. -// If Limit function return an error, the request will be rejected. +// If Limit function returns an error, the request will be rejected with status code and the provided error as the response. // Otherwise, the request will pass. type Limiter interface { Limit(ctx context.Context) error