[DOC] Add parentheses to Array#eql?

Makes the call-seq and code more consistent in format.
This commit is contained in:
Peter Zhu 2023-12-27 10:05:10 -05:00
parent 2a4a84664a
commit 26172c9701

View File

@ -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]