Skip to content

Commit e603a42

Browse files
committed
[DOC] Fix call-seq consistency in Array
The documentation guide (https://docs.ruby-lang.org/en/master/contributing/documentation_guide_md.html#label-Calling+Sequence+-28for+methods+written+in+C-29) says that the call-seq for instance methods should only include the method name, no prepending `array.`.
1 parent eada3cd commit e603a42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

array.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,7 +2753,7 @@ rb_ary_length(VALUE ary)
27532753

27542754
/*
27552755
* call-seq:
2756-
* array.empty? -> true or false
2756+
* empty? -> true or false
27572757
*
27582758
* Returns +true+ if the count of elements in +self+ is zero,
27592759
* +false+ otherwise.
@@ -2922,7 +2922,7 @@ rb_ary_join(VALUE ary, VALUE sep)
29222922

29232923
/*
29242924
* call-seq:
2925-
* array.join(separator = $,) -> new_string
2925+
* join(separator = $,) -> new_string
29262926
*
29272927
* Returns the new string formed by joining the converted elements of +self+;
29282928
* for each element +element+:
@@ -3088,7 +3088,7 @@ rb_ary_to_h(VALUE ary)
30883088

30893089
/*
30903090
* call-seq:
3091-
* array.to_ary -> self
3091+
* to_ary -> self
30923092
*
30933093
* Returns +self+.
30943094
*/
@@ -8012,7 +8012,7 @@ rb_ary_one_p(int argc, VALUE *argv, VALUE ary)
80128012

80138013
/*
80148014
* call-seq:
8015-
* array.dig(index, *identifiers) -> object
8015+
* dig(index, *identifiers) -> object
80168016
*
80178017
* Finds and returns the object in nested object
80188018
* specified by +index+ and +identifiers+;

0 commit comments

Comments
 (0)