[前][次][番号順一覧][スレッド一覧]

ruby-changes:46452

From: ktsj <ko1@a...>
Date: Thu, 4 May 2017 17:59:04 +0900 (JST)
Subject: [ruby-changes:46452] ktsj:r58567 (trunk): string.c: [DOC] Properly refer to keyword argument by its name

ktsj	2017-05-04 17:59:01 +0900 (Thu, 04 May 2017)

  New Revision: 58567

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58567

  Log:
    string.c: [DOC] Properly refer to keyword argument by its name

  Modified files:
    trunk/string.c
Index: string.c
===================================================================
--- string.c	(revision 58566)
+++ string.c	(revision 58567)
@@ -1453,11 +1453,11 @@ rb_str_resurrect(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L1453
  *
  *  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).
  */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]