summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/complex.c b/complex.c
index 29652c5e4c..7f2d79b6d2 100644
--- a/complex.c
+++ b/complex.c
@@ -1981,6 +1981,9 @@ Init_Complex(void)
rb_define_method(rb_cFloat, "angle", float_arg, 0);
rb_define_method(rb_cFloat, "phase", float_arg, 0);
+ /*
+ * (0+1i)
+ */
rb_define_const(rb_cComplex, "I",
f_complex_new_bang2(rb_cComplex, ZERO, ONE));
}