summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-04-27 12:21:35 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-04-27 12:22:54 +0900
commit48313f129abd464c69853a66af22adbad260b82e (patch)
treee0f9b4d408d57fc6d605321fdefe7098c3d616a2 /enumerator.c
parentbe8cf0d4f672c6061c38c06a7d5d1ee909fc124b (diff)
Add `or nil` to call-seq of `Enumerator::ArithmeticSequence#begin`
``` % ruby -ve 'p (nil..).first' ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18] nil % ruby -ve 'p (nil..).begin' ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18] nil ```
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c
index 9a0f926..76560fa 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -2936,7 +2936,7 @@ rb_arith_seq_new(VALUE obj, VALUE meth, int argc, VALUE const *argv,
}
/*
- * call-seq: aseq.begin -> num
+ * call-seq: aseq.begin -> num or nil
*
* Returns the number that defines the first element of this arithmetic
* sequence.