aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-04 08:59:01 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-04 08:59:01 +0000
commitcd400eb7f6317c39c6d506e772ca99436fb908f8 (patch)
treed114cb6e31213ae540085c0e950a356139ba5335 /string.c
parenteef90cb37ed6fdb804eb1927697b41fd35d6ea7a (diff)
downloadruby-cd400eb7f6317c39c6d506e772ca99436fb908f8.tar.gz
string.c: [DOC] Properly refer to keyword argument by its name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.c b/string.c
index 0979a89a74..6839520575 100644
--- a/string.c
+++ b/string.c
@@ -1453,11 +1453,11 @@ rb_str_resurrect(VALUE str)
*
* Returns a new string object containing a copy of <i>str</i>.
*
- * The optional <i>enc</i> argument specifies the encoding of the new string.
+ * The optional <i>encoding</i> argument specifies the encoding of the new string.
* If not specified, the encoding of <i>str</i> (or ASCII-8BIT, if <i>str</i>
* is not specified) is used.
*
- * The optional <i>size</i> argument specifies the size of internal buffer.
+ * The optional <i>capacity</i> argument specifies the size of internal buffer.
* This may improve performance, when the string will be concatenated many
* times (and call many realloc).
*/