aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authorKouhei Yanagita <yanagi@shakenbu.org>2023-10-15 07:51:59 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-15 13:47:58 +0900
commit5cb76754ab7fbe90cbbbe1bc526011c3a28fd1cb (patch)
tree0fd40f7d115793e51b056e01caf087a8bff42448 /numeric.c
parent83f929316e2ef860469886d8001b69a67f15a406 (diff)
downloadruby-5cb76754ab7fbe90cbbbe1bc526011c3a28fd1cb.tar.gz
[DOC] Fix the argument name in the Numeric#step doc
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c12
1 files changed, 6 insertions, 6 deletions
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)
*
* <b>Positional Arguments</b>
*
- * With optional positional arguments +limit+ and +step+,
+ * With optional positional arguments +to+ and +by+,
* their values (or defaults) determine the step and limit:
*
* squares = []