From d3e44612e2420872307f1c320e15928c536db4fb Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Thu, 9 Jan 2020 17:32:40 +0800 Subject: [PATCH] Fix typos --- README.md | 4 ++-- README_ZH.md | 4 ++-- ants.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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.