From 1a8a24a6332afee5020f1a3d79e625b9f3a7e3c7 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Mon, 13 Mar 2023 11:55:59 -0500 Subject: [DOC] Enhanced RDoc for NilClass (#7500) --- complex.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'complex.c') diff --git a/complex.c b/complex.c index 57962f9013..686114b292 100644 --- a/complex.c +++ b/complex.c @@ -1692,9 +1692,12 @@ nucomp_to_c(VALUE self) /* * call-seq: - * nil.to_c -> (0+0i) + * to_c -> (0+0i) + * + * Returns zero as a Complex: + * + * nil.to_c # => (0+0i) * - * Returns zero as a complex. */ static VALUE nilclass_to_c(VALUE self) -- cgit v1.2.3