Jean byroot Boussier d1ffd5ecfa
String.new(capacity:) don't substract termlen (#11027)
[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:`.

Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2024-06-20 10:39:20 -07:00
..
2023-12-25 11:17:51 +09:00
2023-12-25 11:17:51 +09:00
2023-12-25 11:17:51 +09:00
2023-11-14 15:56:58 +09:00
2023-11-14 15:56:58 +09:00
2023-11-14 15:56:58 +09:00
2023-11-30 21:39:28 +09:00
2023-12-25 11:17:51 +09:00
2023-11-14 15:56:58 +09:00
2023-11-01 22:16:33 -04:00
2023-11-14 15:56:58 +09:00
2023-09-20 23:52:52 +09:00