aboutsummaryrefslogtreecommitdiffstats
path: root/complex.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2023-03-13 11:55:59 -0500
committerGitHub <noreply@github.com>2023-03-13 12:55:59 -0400
commit1a8a24a6332afee5020f1a3d79e625b9f3a7e3c7 (patch)
treefc8a1677bebc482b018e92bd6dd72cd842ee14d6 /complex.c
parent45127c84d992dc0224c59be341e6c652de7edd21 (diff)
downloadruby-1a8a24a6332afee5020f1a3d79e625b9f3a7e3c7.tar.gz
[DOC] Enhanced RDoc for NilClass (#7500)
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c7
1 files changed, 5 insertions, 2 deletions
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)