ruby/doc
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
..
ChangeLog Use www.rfc-editor.org for RFC text. 2024-03-28 11:44:45 +09:00
NEWS
command_line [DOC] Ruby command-line options (#10138) 2024-03-06 15:10:24 -05:00
contributing [DOC] building_ruby: Move the caution to a footnote 2024-06-02 21:33:02 +09:00
csv Use www.rfc-editor.org for RFC text. 2024-03-28 11:44:45 +09:00
date
examples
images
irb [ruby/irb] Fix irb_history saved to current directory 2024-03-16 15:20:03 +00:00
matchdata
math
net-http
optparse
pty [DOC] Update PTY documents 2024-04-07 13:35:20 +09:00
rdoc [ruby/rdoc] [DOC] Improve documentation of include directive file search 2024-03-09 05:46:49 +00:00
regexp
reline
rjit
ruby [DOC] Ruby command-line options (#10138) 2024-03-06 15:10:24 -05:00
string String.new(capacity:) don't substract termlen 2024-06-19 15:11:07 +02:00
strscan Removed trailing spaces. 2024-06-04 15:00:47 +09:00
symbol
syntax [DOC] document line continuation. 2024-06-07 21:55:42 +09:00
yjit YJIT: update code optimization tips in yjit.md (#10445) 2024-04-03 21:28:01 +00:00
.document [DOC] Ruby command-line options (#10138) 2024-03-06 15:10:24 -05:00
_regexp.rdoc
_timezones.rdoc
bsearch.rdoc
bug_triaging.rdoc
case_mapping.rdoc
character_selectors.rdoc
command_injection.rdoc
contributing.md
dig_methods.rdoc
distribution.md
dtrace_probes.rdoc
encodings.rdoc [DOC] Fix typo in example code for `String#encode` method 2024-05-14 08:22:36 +00:00
exceptions.md Correct typo [ci skip] 2024-06-09 21:01:35 +09:00
extension.ja.rdoc [DOC] Caveat about "allocate then wrap" 2024-04-26 18:17:09 +09:00
extension.rdoc [DOC] Caveat about "allocate then wrap" 2024-04-26 18:17:09 +09:00
fiber.md
format_specifications.rdoc [Bug #20566] Mention out-of-range argument cases in `String#<<` 2024-06-09 10:11:06 +09:00
forwardable.rd.ja
globals.rdoc [DOC] Fix a typo in globals.rdoc 2024-04-26 14:31:36 +00:00
implicit_conversion.rdoc
keywords.rdoc
maintainers.md
marshal.rdoc
memory_view.md
packed_data.rdoc [DOC] Fix examples for `u` packing directive 2024-04-03 09:55:24 +09:00
ractor.md
security.rdoc [DOC] security.rdoc: fix YAML security documentation 2024-03-11 16:26:14 +09:00
signals.rdoc
standard_library.rdoc
strftime_formatting.rdoc Use www.rfc-editor.org for RFC text. 2024-03-28 11:44:45 +09:00
syntax.rdoc
windows.md
yarvarch.en
yarvarch.ja