From a20d939e0dafc6c9593213a01ebbe862ce797531 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sun, 15 Mar 2026 16:05:18 +0500 Subject: [PATCH] Clarify documentation for NewConfigWithValidator limit and validator parameters --- blocklist.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blocklist.go b/blocklist.go index cb06c37..7561e97 100644 --- a/blocklist.go +++ b/blocklist.go @@ -46,6 +46,8 @@ func NewConfig(limit uint) Config { } // NewConfigWithValidator creates a new Config with the specified validator. +// limit is the maximum number of items to process or validate. 0 means no limit. +// validator is the IP validator to use. func NewConfigWithValidator(limit uint, validator parser.IPValidator) Config { return Config{ Limit: limit,