ruby/doc/string
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
..
b.rdoc [DOC] Enhanced RDoc for String (#5742) 2022-03-31 15:09:25 -05:00
bytes.rdoc
bytesize.rdoc [DOC] Enhanced RDoc for String (#5753) 2022-04-03 10:09:34 -05:00
center.rdoc [DOC] Enhanced RDoc for String (#5726) 2022-03-28 15:49:18 -05:00
chars.rdoc
chomp.rdoc [DOC] Enhanced RDoc for String (#5707) 2022-03-24 19:40:58 -05:00
chop.rdoc [DOC] Enhanced RDoc for String (#5707) 2022-03-24 19:40:58 -05:00
codepoints.rdoc
delete_prefix.rdoc [DOC] Enhanced RDoc for String (#5730) 2022-03-29 09:54:29 -05:00
delete_suffix.rdoc [DOC] Enhanced RDoc for String (#5730) 2022-03-29 09:54:29 -05:00
each_byte.rdoc
each_char.rdoc
each_codepoint.rdoc
each_grapheme_cluster.rdoc
each_line.rdoc
encode.rdoc [DOC] Update `String#encode` special case 2023-01-16 19:44:40 +09:00
end_with_p.rdoc [DOC] Enhanced RDoc for String (#5730) 2022-03-29 09:54:29 -05:00
force_encoding.rdoc [DOC] Enhanced RDoc for String (#5742) 2022-03-31 15:09:25 -05:00
grapheme_clusters.rdoc
index.rdoc Enhanced RDoc for String#index (#5759) 2022-04-04 14:18:10 -05:00
length.rdoc Remove (newly unneeded) remarks about aliases 2023-02-19 14:26:34 -08:00
ljust.rdoc [DOC] Enhanced RDoc for String (#5726) 2022-03-28 15:49:18 -05:00
new.rdoc String.new(capacity:) don't substract termlen 2024-06-19 15:11:07 +02:00
ord.rdoc [DOC] Enhanced RDoc for String (#5724) 2022-03-27 14:45:14 -05:00
partition.rdoc [DOC] Enhanced RDoc for String (#5726) 2022-03-28 15:49:18 -05:00
rjust.rdoc [DOC] Enhanced RDoc for String (#5726) 2022-03-28 15:49:18 -05:00
rpartition.rdoc [DOC] Enhanced RDoc for String (#5726) 2022-03-28 15:49:18 -05:00
scrub.rdoc [DOC] Enhanced RDoc for String (#5742) 2022-03-31 15:09:25 -05:00
split.rdoc s/ocurs/occurs/ 2024-02-15 17:01:02 +09:00
start_with_p.rdoc [DOC] Fix markup for `String` (#5984) 2022-06-09 13:40:21 -05:00
sum.rdoc [DOC] Enhanced RDoc for String (#5724) 2022-03-27 14:45:14 -05:00