summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-03 05:51:18 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-03 05:51:18 (GMT)
commitbace0d4cdcfaec75e76145349f0b3c0b989a0b6d (patch)
treefa6e6c9d732f88b933be2e1f4175530b82377ce9 /rational.c
parent55cb93efc539cbc71de486aaba300457cf21e9b5 (diff)
[DOC] Add `or nil` to call-seq [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rational.c b/rational.c
index af990b9..089f5d5 100644
--- a/rational.c
+++ b/rational.c
@@ -529,8 +529,8 @@ static VALUE nurat_s_convert(int argc, VALUE *argv, VALUE klass);
/*
* call-seq:
- * Rational(x, y, exception: true) -> rational
- * Rational(arg, exception: true) -> rational
+ * Rational(x, y, exception: true) -> rational or nil
+ * Rational(arg, exception: true) -> rational or nil
*
* Returns +x/y+ or +arg+ as a Rational.
*