Add comment to NewConfig explaining the limit parameter
This commit is contained in:
@@ -35,6 +35,7 @@ type Config struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NewConfig creates a new Config with default values.
|
// NewConfig creates a new Config with default values.
|
||||||
|
// limit is the maximum number of items to process or validate. 0 means no limit.
|
||||||
func NewConfig(limit uint) Config {
|
func NewConfig(limit uint) Config {
|
||||||
return Config{
|
return Config{
|
||||||
Limit: limit,
|
Limit: limit,
|
||||||
|
|||||||
Reference in New Issue
Block a user