Describe alternatives you've considered.
As per docs
the module will determine the number of NAT Gateways to create based on the max() of the private subnet lists
But the code takes into account public subnets as well.
Should either the docs be adjusted or the code fixed?