mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
[DOC] Add parentheses to Array#eql?
Makes the call-seq and code more consistent in format.
This commit is contained in:
parent
2a4a84664a
commit
26172c9701
1 changed files with 2 additions and 2 deletions
4
array.c
4
array.c
|
@ -5143,10 +5143,10 @@ recursive_eql(VALUE ary1, VALUE ary2, int recur)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* array.eql? other_array -> true or false
|
||||
* array.eql?(other_array) -> true or false
|
||||
*
|
||||
* Returns +true+ if +self+ and +other_array+ are the same size,
|
||||
* and if, for each index +i+ in +self+, <tt>self[i].eql? other_array[i]</tt>:
|
||||
* and if, for each index +i+ in +self+, <tt>self[i].eql?(other_array[i])</tt>:
|
||||
*
|
||||
* a0 = [:foo, 'bar', 2]
|
||||
* a1 = [:foo, 'bar', 2]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue