Skip to content

Commit 5cb7675

Browse files
kyanaginobu
authored andcommitted
[DOC] Fix the argument name in the Numeric#step doc
1 parent 83f9293 commit 5cb7675

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

numeric.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,11 +2960,11 @@ num_step_size(VALUE from, VALUE args, VALUE eobj)
29602960
* The generated sequence:
29612961
*
29622962
* - Begins with +self+.
2963-
* - Continues at intervals of +step+ (which may not be zero).
2964-
* - Ends with the last number that is within or equal to +limit+;
2965-
* that is, less than or equal to +limit+ if +step+ is positive,
2966-
* greater than or equal to +limit+ if +step+ is negative.
2967-
* If +limit+ is not given, the sequence is of infinite length.
2963+
* - Continues at intervals of +by+ (which may not be zero).
2964+
* - Ends with the last number that is within or equal to +to+;
2965+
* that is, less than or equal to +to+ if +by+ is positive,
2966+
* greater than or equal to +to+ if +by+ is negative.
2967+
* If +to+ is +nil+, the sequence is of infinite length.
29682968
*
29692969
* If a block is given, calls the block with each number in the sequence;
29702970
* returns +self+. If no block is given, returns an Enumerator::ArithmeticSequence.
@@ -3006,7 +3006,7 @@ num_step_size(VALUE from, VALUE args, VALUE eobj)
30063006
*
30073007
* <b>Positional Arguments</b>
30083008
*
3009-
* With optional positional arguments +limit+ and +step+,
3009+
* With optional positional arguments +to+ and +by+,
30103010
* their values (or defaults) determine the step and limit:
30113011
*
30123012
* squares = []

0 commit comments

Comments
 (0)