aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index b88450d0e6..3698db6424 100644
--- a/gc.c
+++ b/gc.c
@@ -2424,6 +2424,7 @@ os_obj_of(VALUE of)
/*
* call-seq:
* ObjectSpace.each_object([module]) {|obj| ... } => fixnum
+ * ObjectSpace.each_object([module]) => an_enumerator
*
* Calls the block once for each living, nonimmediate object in this
* Ruby process. If <i>module</i> is specified, calls the block
@@ -2435,6 +2436,8 @@ os_obj_of(VALUE of)
* returns both the numbers we defined and several constants defined in
* the <code>Math</code> module.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = 102.7
* b = 95 # Won't be returned
* c = 12345678987654321