Jean Boussier 83f57ca3d2 String.new(capacity:) don't substract termlen
[Bug #20585]

This was changed in 36a06efdd9f0604093dccbaf96d4e2cb17874dc8 because
`String.new(1024)` would end up allocating `1025` bytes, but the problem
with this change is that the caller may be trying to right size a String.

So instead, we should just better document the behavior of `capacity:`.
2024-06-19 15:11:07 +02:00
..
2024-03-28 11:44:45 +09:00
2024-04-07 13:35:20 +09:00
2024-06-04 15:00:47 +09:00
2024-06-07 21:55:42 +09:00
2024-06-09 21:01:35 +09:00
2024-04-26 14:31:36 +00:00