aboutsummaryrefslogtreecommitdiffstats
path: root/complex.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-21 00:45:52 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-21 00:45:52 +0000
commitcbf4eca61e1b051593b5d29c657546260247e785 (patch)
tree0eed92e27f9894b160e4f73360e0730e3614f379 /complex.c
parent3fb752a921a56fb4ea3188fb12f02f6a5749480e (diff)
downloadruby-cbf4eca61e1b051593b5d29c657546260247e785.tar.gz
* complax.c: [DOC] Document number conversion of `nil` by @skade [fix GH-570] [ci skip]
* object.c, rational.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/complex.c b/complex.c
index 78c4259105..761b70c042 100644
--- a/complex.c
+++ b/complex.c
@@ -431,6 +431,8 @@ f_complex_new2(VALUE klass, VALUE x, VALUE y)
*
* Complex(1, 2) #=> (1+2i)
* Complex('1+2i') #=> (1+2i)
+ * Complex(nil) #=> TypeError
+ * Complex(1, nil) #=> TypeError
*
* Syntax of string form:
*