diff --git a/ants_test.go b/ants_test.go index d637c34..34e8bd5 100644 --- a/ants_test.go +++ b/ants_test.go @@ -34,14 +34,14 @@ import ( const ( _ = 1 << (10 * iota) - KiB // 1024 - MiB // 1048576 - GiB // 1073741824 - TiB // 1099511627776 (超过了int32的范围) - PiB // 1125899906842624 - EiB // 1152921504606846976 - ZiB // 1180591620717411303424 (超过了int64的范围) - YiB // 1208925819614629174706176 + KiB // 1024 + MiB // 1048576 + GiB // 1073741824 + TiB // 1099511627776 (超过了int32的范围) + PiB // 1125899906842624 + EiB // 1152921504606846976 + ZiB // 1180591620717411303424 (超过了int64的范围) + YiB // 1208925819614629174706176 ) const ( @@ -304,4 +304,3 @@ func TestRestCodeCoverage(t *testing.T) { p.Tune(AntsSize) t.Logf("pool with func, after tuning capacity, capacity:%d, running:%d", p.Cap(), p.Running()) } - diff --git a/examples/main.go b/examples/main.go index 8edac1c..0d28879 100644 --- a/examples/main.go +++ b/examples/main.go @@ -77,4 +77,4 @@ func main() { wg.Wait() fmt.Printf("running goroutines: %d\n", p.Running()) fmt.Printf("finish all tasks, result is %d\n", sum) -} \ No newline at end of file +}