Fix typos

This commit is contained in:
Andy Pan 2020-01-09 17:32:40 +08:00
parent ea787e5c0b
commit d3e44612e2
3 changed files with 6 additions and 6 deletions

View File

@ -186,10 +186,10 @@ type Option func(opts *Options)
// Options contains all options which will be applied when instantiating a ants pool. // Options contains all options which will be applied when instantiating a ants pool.
type Options struct { type Options struct {
// ExpiryDuration set the expired time (second) of every worker. // ExpiryDuration sets the expired time (second) of every worker.
ExpiryDuration time.Duration 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 PreAlloc bool
// Max number of goroutine blocking on pool.Submit. // Max number of goroutine blocking on pool.Submit.

View File

@ -186,10 +186,10 @@ type Option func(opts *Options)
// Options contains all options which will be applied when instantiating a ants pool. // Options contains all options which will be applied when instantiating a ants pool.
type Options struct { type Options struct {
// ExpiryDuration set the expired time (second) of every worker. // ExpiryDuration sets the expired time (second) of every worker.
ExpiryDuration time.Duration 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 PreAlloc bool
// Max number of goroutine blocking on pool.Submit. // Max number of goroutine blocking on pool.Submit.

View File

@ -85,10 +85,10 @@ type Option func(opts *Options)
// Options contains all options which will be applied when instantiating a ants pool. // Options contains all options which will be applied when instantiating a ants pool.
type Options struct { type Options struct {
// ExpiryDuration set the expired time of every worker. // ExpiryDuration sets the expired time of every worker.
ExpiryDuration time.Duration 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 PreAlloc bool
// Max number of goroutine blocking on pool.Submit. // Max number of goroutine blocking on pool.Submit.