diff --git a/README.md b/README.md index aeaa875..05499b3 100644 --- a/README.md +++ b/README.md @@ -186,10 +186,10 @@ type Option func(opts *Options) // Options contains all options which will be applied when instantiating a ants pool. type Options struct { - // ExpiryDuration set the expired time (second) of every worker. + // ExpiryDuration sets the expired time (second) of every worker. ExpiryDuration time.Duration - // PreAlloc indicate whether to make memory pre-allocation when initializing Pool. + // PreAlloc indicates whether to make memory pre-allocation when initializing Pool. PreAlloc bool // Max number of goroutine blocking on pool.Submit. diff --git a/README_ZH.md b/README_ZH.md index f08c35a..1dd516f 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -186,10 +186,10 @@ type Option func(opts *Options) // Options contains all options which will be applied when instantiating a ants pool. type Options struct { - // ExpiryDuration set the expired time (second) of every worker. + // ExpiryDuration sets the expired time (second) of every worker. ExpiryDuration time.Duration - // PreAlloc indicate whether to make memory pre-allocation when initializing Pool. + // PreAlloc indicates whether to make memory pre-allocation when initializing Pool. PreAlloc bool // Max number of goroutine blocking on pool.Submit. diff --git a/ants.go b/ants.go index 6c57b7b..5473cb1 100644 --- a/ants.go +++ b/ants.go @@ -85,10 +85,10 @@ type Option func(opts *Options) // Options contains all options which will be applied when instantiating a ants pool. type Options struct { - // ExpiryDuration set the expired time of every worker. + // ExpiryDuration sets the expired time of every worker. ExpiryDuration time.Duration - // PreAlloc indicate whether to make memory pre-allocation when initializing Pool. + // PreAlloc indicates whether to make memory pre-allocation when initializing Pool. PreAlloc bool // Max number of goroutine blocking on pool.Submit.