summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index c63899479a..ca508f371c 100644
--- a/array.c
+++ b/array.c
@@ -1902,8 +1902,8 @@ rb_ary_collect(ary)
VALUE collect;
if (!rb_block_given_p()) {
- rb_warn("Array#%s without a block does not return an array in 1.9 and later",
- rb_id2name(rb_frame_last_func()));
+ rb_warning("Array#%s without a block does not return an array in 1.9 and later",
+ rb_id2name(rb_frame_last_func()));
return rb_ary_new4(RARRAY(ary)->len, RARRAY(ary)->ptr);
}