summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2022-04-02 14:26:49 -0500
committerGitHub <noreply@github.com>2022-04-02 14:26:49 -0500
commit7be4d900f0e14e6093c726fbc4416560fd56c931 (patch)
tree73f6c240485b3289bd7ea0fbc8b128cd6cd2fc10 /string.c
parent4d2623ead2b526fda0dd1e919d9d1dd1d159f57e (diff)
downloadruby-7be4d900f0e14e6093c726fbc4416560fd56c931.tar.gz
[DOC] Enhanced RDoc for String (#5751)
Adds to doc for String.new, also making it compliant with documentation_guide.rdoc. Fixes some broken links in io.c (that I failed to correct yesterday).
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/string.c b/string.c
index 401fcca2fc..f6987459ed 100644
--- a/string.c
+++ b/string.c
@@ -1813,9 +1813,7 @@ rb_ec_str_resurrect(struct rb_execution_context_struct *ec, VALUE str)
/*
*
* call-seq:
- * String.new(string = '') -> new_string
- * String.new(string = '', encoding: encoding) -> new_string
- * String.new(string = '', capacity: size) -> new_string
+ * String.new(string = '', **opts) -> new_string
*
* :include: doc/string/new.rdoc
*