Skip to content

Commit

Permalink
[DOC] Add parentheses to Array#eql?
Browse files Browse the repository at this point in the history
Makes the call-seq and code more consistent in format.
  • Loading branch information
peterzhu2118 committed Dec 27, 2023
1 parent 2a4a846 commit 26172c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions array.c
Expand Up @@ -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]
Expand Down

0 comments on commit 26172c9

Please sign in to comment.