summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/enum.c b/enum.c
index 50b34ef16c..221f95f505 100644
--- a/enum.c
+++ b/enum.c
@@ -431,8 +431,8 @@ enum_collect(obj)
VALUE ary = rb_ary_new();
if (!rb_block_given_p()) {
- rb_warn("Enumerable#%s without a block does not return an array in 1.9 and later",
- rb_id2name(rb_frame_last_func()));
+ rb_warning("Enumerable#%s without a block does not return an array in 1.9 and later",
+ rb_id2name(rb_frame_last_func()));
rb_iterate(rb_each, obj, collect_all, ary);
}
else {