зеркало из https://github.com/github/ruby.git
83f57ca3d2
[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:`. |
||
---|---|---|
.. | ||
test_capacity.rb | ||
test_coderange.rb | ||
test_cstr.rb | ||
test_ellipsize.rb | ||
test_enc_associate.rb | ||
test_enc_str_buf_cat.rb | ||
test_external_new.rb | ||
test_fstring.rb | ||
test_interned_str.rb | ||
test_modify_expand.rb | ||
test_nofree.rb | ||
test_normalize.rb | ||
test_qsort.rb | ||
test_rb_str_dup.rb | ||
test_set_len.rb | ||
test_too_many_dummy_encodings.rb |