aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-05-17 21:01:29 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-05-17 21:01:29 +0900
commitfa7addebb498d92d059a020a1a9739e5522b27dc (patch)
treec5ce530c7dc798069d57c3e55fcbcbbb29990c19 /string.c
parent9f18b139c9d93c0bcfdc4f4e502ab024c4212fc0 (diff)
downloadruby-fa7addebb498d92d059a020a1a9739e5522b27dc.tar.gz
Fix typos [ci skip]
Diffstat (limited to 'string.c')
-rw-r--r--string.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/string.c b/string.c
index fc4eb14e54..eac1d21697 100644
--- a/string.c
+++ b/string.c
@@ -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) # => ""
*
* ---
*