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-03-06 15:10:24 -05:00
2024-06-02 21:33:02 +09:00
2024-03-28 11:44:45 +09:00
2024-03-16 15:20:03 +00:00
2023-12-25 01:47:13 -08:00
2023-12-25 21:12:49 +09:00
2024-04-07 13:35:20 +09:00
2024-03-09 05:46:49 +00:00
2023-12-21 16:47:13 -08:00
2024-03-06 15:10:24 -05:00
2024-06-19 15:11:07 +02:00
2024-06-04 15:00:47 +09:00
2024-06-07 21:55:42 +09:00
2024-04-03 21:28:01 +00:00
2023-11-30 10:40:40 -08:00
2023-12-05 18:10:56 +09:00
2024-03-06 15:10:24 -05:00
2024-01-22 12:06:00 +09:00
2024-05-14 08:22:36 +00:00
2024-06-09 21:01:35 +09:00
2024-04-26 18:17:09 +09:00
2024-04-26 18:17:09 +09:00
2024-06-09 10:11:06 +09:00
2024-04-26 14:31:36 +00:00
2024-01-23 18:02:42 +01:00
2024-04-03 09:55:24 +09:00
2024-01-02 08:13:37 +09:00
2024-03-11 16:26:14 +09:00
2024-01-22 18:23:05 +09:00
2024-03-28 11:44:45 +09:00
2024-01-26 12:38:01 +09:00