1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix typos [ci skip]

This commit is contained in:
Kazuhiro NISHIYAMA 2020-05-17 21:01:29 +09:00
parent 9f18b139c9
commit fa7addebb4
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -1579,7 +1579,7 @@ rb_str_resurrect(VALUE str)
* ---
*
* With no arguments, returns the empty string with the Encoding <tt>ASCII-8BIT</tt>:
* s = Str.new
* s = String.new
* s # => ""
* s.encoding # => #<Encoding:ASCII-8BIT>
*
@ -1611,12 +1611,12 @@ rb_str_resurrect(VALUE str)
* With keyword +capacity+, returns a copy of +str+;
* the given +capacity+ may set the size of the internal buffer,
* which may affect performance:
* String.new(capacity: 1) # => "
* String.new(capacity: 4096) # => "
* String.new(capacity: 1) # => ""
* String.new(capacity: 4096) # => ""
*
* No exception is raised for zero or negative values:
* String.new(capacity: 0) # => "
* String.new(capacity: -1) # => "
* String.new(capacity: 0) # => ""
* String.new(capacity: -1) # => ""
*
* ---
*