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

ruby-changes:65682

From: Kenichi <ko1@a...>
Date: Mon, 29 Mar 2021 03:18:08 +0900 (JST)
Subject: [ruby-changes:65682] 813c3333a9 (master): [Doc] Fix Array#count comparing strategy

https://git.ruby-lang.org/ruby.git/commit/?id=813c3333a9

From 813c3333a9364222523a9fe863df569300ac1ad1 Mon Sep 17 00:00:00 2001
From: Kenichi Kamiya <kachick1@g...>
Date: Mon, 29 Mar 2021 01:02:21 +0900
Subject: [Doc] Fix Array#count comparing strategy

---
 array.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/array.c b/array.c
index 0f7ccde..7c84bba 100644
--- a/array.c
+++ b/array.c
@@ -6093,7 +6093,7 @@ rb_ary_compact(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L6093
  *    [0, 1, 2].count # => 3
  *    [].count # => 0
  *
- *  With argument +obj+, returns the count of elements <tt>eql?</tt> to +obj+:
+ *  With argument +obj+, returns the count of elements <tt>==</tt> to +obj+:
  *    [0, 1, 2, 0].count(0) # => 2
  *    [0, 1, 2].count(3) # => 0
  *
@@ -6102,7 +6102,7 @@ rb_ary_compact(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L6102
  *    [0, 1, 2, 3].count {|element| element > 1} # => 2
  *
  *  With argument +obj+ and a block given, issues a warning, ignores the block,
- *  and returns the count of elements <tt>eql?</tt> to +obj+:
+ *  and returns the count of elements <tt>==</tt> to +obj+:
  */
 
 static VALUE
-- 
cgit v1.1


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

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