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 str. * - * The optional enc argument specifies the encoding of the new string. + * The optional encoding argument specifies the encoding of the new string. * If not specified, the encoding of str (or ASCII-8BIT, if str * is not specified) is used. * - * The optional size argument specifies the size of internal buffer. + * The optional capacity argument specifies the size of internal buffer. * This may improve performance, when the string will be concatenated many * times (and call many realloc). */