diff --git a/string.c b/string.c index 6839520575..eda2452716 100644 --- a/string.c +++ b/string.c @@ -1447,19 +1447,21 @@ rb_str_resurrect(VALUE str) /* * call-seq: - * String.new(str="") -> new_str - * String.new(str="", encoding: enc) -> new_str - * String.new(str="", capacity: size) -> new_str + * String.new(str="") -> new_str + * String.new(str="", encoding: enc) -> new_str + * String.new(str="", capacity: size) -> new_str * * Returns a new string object containing a copy of str. * - * 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 encoding keyword argument specifies the encoding + * of the new string. + * If not specified, the encoding of str is used + * (or ASCII-8BIT, if str is not specified). * - * The optional capacity argument specifies the size of internal buffer. + * The optional capacity keyword argument specifies the size + * of the internal buffer. * This may improve performance, when the string will be concatenated many - * times (and call many realloc). + * times (causing many realloc calls). */ static VALUE