From 5cb76754ab7fbe90cbbbe1bc526011c3a28fd1cb Mon Sep 17 00:00:00 2001 From: Kouhei Yanagita Date: Sun, 15 Oct 2023 07:51:59 +0900 Subject: [DOC] Fix the argument name in the Numeric#step doc --- numeric.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 1890f88c7c..8cea384d8f 100644 --- a/numeric.c +++ b/numeric.c @@ -2960,11 +2960,11 @@ num_step_size(VALUE from, VALUE args, VALUE eobj) * The generated sequence: * * - Begins with +self+. - * - Continues at intervals of +step+ (which may not be zero). - * - Ends with the last number that is within or equal to +limit+; - * that is, less than or equal to +limit+ if +step+ is positive, - * greater than or equal to +limit+ if +step+ is negative. - * If +limit+ is not given, the sequence is of infinite length. + * - Continues at intervals of +by+ (which may not be zero). + * - Ends with the last number that is within or equal to +to+; + * that is, less than or equal to +to+ if +by+ is positive, + * greater than or equal to +to+ if +by+ is negative. + * If +to+ is +nil+, the sequence is of infinite length. * * If a block is given, calls the block with each number in the sequence; * returns +self+. If no block is given, returns an Enumerator::ArithmeticSequence. @@ -3006,7 +3006,7 @@ num_step_size(VALUE from, VALUE args, VALUE eobj) * * Positional Arguments * - * With optional positional arguments +limit+ and +step+, + * With optional positional arguments +to+ and +by+, * their values (or defaults) determine the step and limit: * * squares = [] -- cgit v1.2.3