[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
4
array.c
4
array.c
@ -5143,10 +5143,10 @@ recursive_eql(VALUE ary1, VALUE ary2, int recur)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* 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,
|
* 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]
|
* a0 = [:foo, 'bar', 2]
|
||||||
* a1 = [:foo, 'bar', 2]
|
* a1 = [:foo, 'bar', 2]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user