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

ruby-changes:29951

From: nobu <ko1@a...>
Date: Tue, 16 Jul 2013 18:50:21 +0900 (JST)
Subject: [ruby-changes:29951] nobu:r42003 (trunk): array.c: fix typo

nobu	2013-07-16 18:50:11 +0900 (Tue, 16 Jul 2013)

  New Revision: 42003

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42003

  Log:
    array.c: fix typo
    
    * array.c (rb_ary_count): [DOC] fix typo.  Array#count uses ==, not
      ===.  a question at asakusa.rb ML.

  Modified files:
    trunk/ChangeLog
    trunk/array.c

Index: array.c
===================================================================
--- array.c	(revision 42002)
+++ array.c	(revision 42003)
@@ -4113,7 +4113,7 @@ rb_ary_compact(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L4113
  *  Returns the number of elements.
  *
  *  If an argument is given, counts the number of elements which equal +obj+
- *  using <code>===</code>.
+ *  using <code>==</code>.
  *
  *  If a block is given, counts the number of elements for which the block
  *  returns a true value.
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42002)
+++ ChangeLog	(revision 42003)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jul 16 18:50:08 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* array.c (rb_ary_count): [DOC] fix typo.  Array#count uses ==, not
+	  ===.  a question at asakusa.rb ML.
+
 Tue Jul 16 18:35:48 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (bary_mul_karatsuba): Avoid duplicate calculation when

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

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