std: remove loop from growCapacity

I measured this against master branch and found no statistical
difference. Since this code is simpler and logically superior due to
always leaving sufficient unused capacity when growing, it is preferred
over status quo.
0c1fbc4ea6Andrew Kelley committed on 9/20/2025, 9:34:18 PMparent4d1b15b
4 files changedLine totals unavailable