goinaction / code

Source Code for Go In Action examples
4.13k stars 2.37k forks source link

Update pool.go #86

Closed frankxjkuang closed 1 year ago

frankxjkuang commented 2 years ago

Less than 0 is an impossible thing, so there is no need to judge an impossible thing

miluchen commented 2 years ago

Users of the package may pass in a negative value. The package should handle this edge case.

frankxjkuang commented 2 years ago

Users of the package may pass in a negative value. The package should handle this edge case.

The minimum uint can only be 0, and it is not necessary to judge the negative number.